How do I remove white spaces on the command window after the answer prints a string?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
How do I remove white spacing indents on the left whenever the command window prints a string variable? Ex.
>> ans =
' One of the Wrong Answers is
[{MathJax fullWidth='false'
-1.44183
}]
'
0 Commenti
Risposte (2)
Image Analyst
il 31 Ott 2021
I do not believe there is a user setting or preference to change that.
0 Commenti
Jan
il 31 Ott 2021
Use fprintf to ontrol the output exactly. Relying on the implicit calling of display() has less ways to influence the output.
0 Commenti
Vedere anche
Categorie
Scopri di più su Entering Commands in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!