Clear Filters
Clear Filters

extract numbers from a char type input

2 views (last 30 days)
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.

Accepted Answer

per isakson
per isakson on 5 May 2012
doc strtok
doc str2num
  1 Comment
Raldi on 5 May 2012
thank, i believe this is what i was searching for. Although i did it manualy :P

Sign in to comment.

More Answers (0)



Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!