如何定义多个符号变量之间的大小, 并在进行计算后,把这些符号变量排序

syms c1 c2 c3;
abs(c1) >= abs(c2) >= abs(c3)
a = 1/4 - c2/4 - c3/4 - c1/4;
b = c2/4 - c1/4 + c3/4 + 1/4;
c = c1/4 - c2/4 + c3/4 + 1/4;
d = c1/4 + c2/4 - c3/4 + 1/4;
A = [a,b,c,d];
A_asc = sort(A)

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeShifting and Sorting Matrices についてさらに検索

タグ

質問済み:

jm
2024 年 6 月 18 日

コメント済み:

2024 年 6 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by