I need to print a text with more lines on the command window.
example:
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Normally I use display('Text')
But that is not the best way, isn’t it?
Note:
I tried this
fprintf(1, ...
'wwwwwwwwwwwwwwwwwwwwwwwwwwwwwww '...
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa '...
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa '...
);
So my question is:
How to display much text on the command window?
To add some formatting to your string, just use
fprintfwith the format specifier:Read the documenttion to learn more.
Note that the
1as a first argument may be omitted.