How can I separate the two fprintf

14 次查看(过去 30 天)
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');

采纳的回答

Star Strider
Star Strider 2019-9-15
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 个)

类别

Help CenterFile Exchange 中查找有关 Grid Lines, Tick Values, and Labels 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by