string to num
이전 댓글 표시
Hi,
I am reading string data of this format from a text file:
(20:200,40:300)
This is the area of an image which I wish to select. How do I convert this string to number range. Thanks.
Charles-
채택된 답변
추가 답변 (1개)
osman
2011년 12월 7일
0 개 추천
use str2num
댓글 수: 2
Sean de Wolski
2011년 12월 7일
That won't work. He'd going to need to parse the string based on '(,:' first
Charles
2011년 12월 7일
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!