MATLAB Answers

实时脚本中如何将符号矩阵显示为方括号?

2 views (last 30 days)
当我在实时脚本中执行代码:
sym([1 2 3;4 5 6])
获得的结果是圆括号显示,是否有办法改成方括号?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 26 Feb 2020
通过MatrixWithSquareBrackets属性可以设置。请在实时脚本中执行:
sympref('MatrixWithSquareBrackets','default');
sym([1 2 3;4 5 6])
sympref('MatrixWithSquareBrackets',true);
sym([1 2 3;4 5 6])
可知默认情况下,显示为圆括号,设定为true后显示方括号。

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags

No tags entered yet.