what function is used to make this condition??
Info
This question is closed. Reopen it to edit or answer.
Show older comments
if there are number 386504398760, we want to read just digit number 5, so we will result 0, or we read just number 2 and 3, so we result 86.. what function is used to make this condition??
Answers (2)
Azzi Abdelmalek
on 1 Dec 2012
a=386504398760
b=num2str(a)
out=str2num(b(2:3))
Image Analyst
on 1 Dec 2012
Try this:
a=386504398760
string_a = num2str(a)
digitNumber5 = string_a(5)
digitNumbers23 = string_a(2:3)
This question is closed.
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!