Matlab command window result in one line , even wrap text views the output in an non organized way.

2 次查看(过去 30 天)
The result comes all in one line , i made wrap text but also it appears in a non organized way , all answers close to one another. How can i get each answer of each iteration in a single line?

回答(1 个)

Fangjun Jiang
Fangjun Jiang 2018-9-14
use '\n' in fprintf()
fprintf('a1\nb2\nc3\n')

类别

Help CenterFile Exchange 中查找有关 Entering Commands 的更多信息

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by