MATLAB: Extract numbers from a char type input

charMATLABnumber

Hi everyone, my question is about how can i seperate the two numbers given by the user in the form "number1,number2" that are stored as a char type vector. So basicaly i want to seperate it where the comma is and keep the values left and right.
Thanks in advance.

Best Answer

Try
doc strtok
and
doc str2num