Print a statement to the Command Window

Illustration
NAVNEET NAYAN - 2023-04-03T12:06:50+00:00
Question: Print a statement to the Command Window

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 John Michell John Michell 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!