Too many digit numbers in MATLAB strings?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Steven
am 6 Feb. 2014
Kommentiert: Walter Roberson
am 6 Feb. 2014
Hi
I am using strings in a format like:
sprintf('image-%f-%d.jpeg'),i,j)
but it writes the files for me in long digits, for the first one! I mean the output is:
image-14.000000-2
How can I fix this? I just want something like: image-14-2
and why does it so?
Thanks so much
Steven
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!