string to num
Mostra commenti meno recenti
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-
Risposta accettata
Più risposte (1)
osman
il 7 Dic 2011
0 voti
use str2num
2 Commenti
Sean de Wolski
il 7 Dic 2011
That won't work. He'd going to need to parse the string based on '(,:' first
Charles
il 7 Dic 2011
Categorie
Scopri di più su Characters and Strings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!