List functions on fprintf
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
How do you list something on fprintf? I want them in a column than kyou
2 Commenti
Jan
il 31 Ott 2011
And what do you want to appear in this list? Have you read "help fprintf" already?
Risposta accettata
Walter Roberson
il 31 Ott 2011
fprintf('%10.2f\n', YourMatrix)
3 Commenti
Walter Roberson
il 31 Ott 2011
If you need to display a mix of numbers and strings on a single line, then you need to loop over each line. For example:
for K = 1:length(YourMatrix)
fprintf('%10.2f %s\n', YourMatrix(K), YourStrings(K,:));
end
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!