实时脚本中如何将符号矩阵显示为方括号?
3 views (last 30 days)
Show older comments
MathWorks Support Team
on 26 Feb 2020
Answered: MathWorks Support Team
on 26 Feb 2020
当我在实时脚本中执行代码:
sym([1 2 3;4 5 6])
获得的结果是圆括号显示,是否有办法改成方括号?
Accepted Answer
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
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!