Mostrar comentarios más antiguos
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-
Respuesta aceptada
Más respuestas (1)
osman
el 7 de Dic. de 2011
0 votos
use str2num
2 comentarios
Sean de Wolski
el 7 de Dic. de 2011
That won't work. He'd going to need to parse the string based on '(,:' first
Charles
el 7 de Dic. de 2011
Categorías
Más información sobre Characters and Strings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!