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

2 vues (au cours des 30 derniers jours)
MathWorks Support Team
MathWorks Support Team le 26 Fév 2020
当我在实时脚本中执行代码:
sym([1 2 3;4 5 6])
获得的结果是圆括号显示,是否有办法改成方括号?

Réponse acceptée

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

Plus de réponses (0)

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!