HOW IS THIS? THANKS

1 visualización (últimos 30 días)
Gemalyn Apostol
Gemalyn Apostol el 26 de Oct. de 2016
Respondida: Image Analyst el 26 de Oct. de 2016
For writing formatted ascii output WE often write like fprintf(fid,'%5.3f %5.3f %5.3f %5.3f.. ',A).
Describe code that avoids repeating the format description, say 5 times. HOW DO I DO IT? THANKS.

Respuestas (1)

Image Analyst
Image Analyst el 26 de Oct. de 2016
Just put it once:
fprintf(fid,'%5.3f ', A)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by