필터 지우기
필터 지우기

extract numbers from a char type input

조회 수: 1 (최근 30일)
Raldi
Raldi 2012년 5월 5일
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일
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개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by