MATLAB: How to separate the two fprintf

fprintf problem

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');

Best 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');
ā†‘