how could i print '%' in matlab? using fprintf
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
code:
fprintf('%d is my age, i got %d % in my test\n',19,100)
desired output: 19 is my age, i got 100 % in my test
so the problem is that i cant print the '%' character, how could I do that?
thanks in advance! :D
Antworten (1)
Wayne King
am 1 Okt. 2013
fprintf('%d is my age, i got %d %%in my test\n',19,100)
1 Kommentar
Jan
am 1 Okt. 2013
@Jaybee: You can find the answer by reading the documentation: doc fprintf, see the section "formatSpec".
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!