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

2 views (last 30 days)
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?

Answers (1)

Fangjun Jiang
Fangjun Jiang on 14 Sep 2018
use '\n' in fprintf()
fprintf('a1\nb2\nc3\n')

Categories

Find more on Entering Commands in Help Center and File Exchange

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!