MATLAB Answers

0

How can I separate the two fprintf

Asked by Yixuan Zhang on 15 Sep 2019
Latest activity Answered by Star Strider
on 15 Sep 2019
I have the two fprintf, but after run them, they are in one line under the command window. Thanks
fprintf('A new location was found.Enter an ID for it:''NE051');
fprintf('Enter ice thickness for the new day at the new location:''1.68');

  0 Comments

Sign in to comment.

1 Answer

Answer by Star Strider
on 15 Sep 2019
 Accepted Answer

Add a ‘\n’ newline character to the end of each line:
fprintf('A new location was found.Enter an ID for it:''NE051\n');
fprintf('Enter ice thickness for the new day at the new location:''1.68\n');

  0 Comments

Sign in to comment.