Print a statement to the Command Window-matlab answer

Illustration
vivekyt.23 - 2024-07-10T20:09:23+00:00
Question: Print a statement to the Command Window-matlab answer

I am writing a program. I want to display the statement 'job done' as the output in the Command Window. How can I do it?

Expert Answer

Profile picture of Prashant Kumar Prashant Kumar answered . 2025-11-20

To display text in the Command Window, use disp or fprintf.
 
disp('job done')
or
fprintf('job done \n')


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!