extract numbers from a char type input

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.

 채택된 답변

per isakson
per isakson 2012년 5월 5일

0 개 추천

Try
doc strtok
and
doc str2num

댓글 수: 1

Raldi
Raldi 2012년 5월 5일
thank, i believe this is what i was searching for. Although i did it manualy :P

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Text Data Preparation에 대해 자세히 알아보기

제품

태그

질문:

2012년 5월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by