How do I remove white spaces on the command window after the answer prints a string?
조회 수: 5 (최근 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!