How do I remove white spaces on the command window after the answer prints a string?
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
Image Analyst
2021-10-31
I do not believe there is a user setting or preference to change that.
0 个评论
Jan
2021-10-31
Use fprintf to ontrol the output exactly. Relying on the implicit calling of display() has less ways to influence the output.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!