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!