MATLAB Answers

HOW IS THIS? THANKS

2 views (last 30 days)
Gemalyn Apostol
Gemalyn Apostol on 26 Oct 2016
Answered: Image Analyst on 26 Oct 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.

  0 Comments

Sign in to comment.

Answers (1)

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

  0 Comments

Sign in to comment.