How do I get the command prompt to start on a new line in my command window.

Asked by Aaron on 21 Jul 2012
Latest activity Commented on by Aaron on 21 Jul 2012

After I enter my program to test, the ">>" appear immediately after the answer and not on a new line.

0 Comments

Aaron

Products

No products are associated with this question.

1 Answer

Answer by proecsm on 21 Jul 2012
Accepted answer

you need to add a new line '\n' to your display of the answer:

fprintf('no new line')
no new line>> 
>> fprintf('new line\n')
new line
>> 

1 Comment

Aaron on 21 Jul 2012

Thanks....I keep forgetting that when writing programs!!

proecsm

Contact us