When would you use disp instead of fprintf? When would you use fprintf instead of disp?
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:3| Question number:3.8
All Answers
total answers (1)
The disp function is used when no formatting is required. It is also easier to print vectors and matrices using disp. The fprintf function is used for formatted output.
need an explanation for this answer? contact us directly to get an explanation for this answer