Alternative to int2str without using sprintf or other like functions?
5 views (last 30 days)
Show older comments
I'm looking to code int2str without using int2str, basically, but i only need the numbers.
Right now I have
number=input %lets say its 90 int2str(number); '90'
But I would like a different way to do this without using matlab internal function like -printf
0 Comments
Answers (1)
Image Analyst
on 12 May 2014
Why the grudge against sprintf()? Do you hold a grudge against num2str() also? If not, then do this:
strNumber = num2str(number);
4 Comments
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!