Problem vertically aligning data in a table using fprintf
Mostrar comentarios más antiguos
I'm putting my meshgrid to a table and I'm trying to make it look more presentable. I can't seem to figure out how to get them to line up vertically. My current code is:
for i=1:11
fprintf('%2d %3.2f %3.2f %3.2f\n', t(i),X(i),X(i+11),X(i+22))
end
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 2 de Oct. de 2011
0 votos
Check your fonts: File/Preferences/Fonts. Maybe you're using a proportional font when you need a monospaced font.
1 comentario
D
el 2 de Oct. de 2011
Categorías
Más información sobre Data Types en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!