シンボリック関数を使用したシンボリック行列の要素を参照する方法
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
syms x(t) [2 3]
>>
この場合にx(t)の1列目、すなわち
>>
を参照する方法はありますか?
x(t)(:,1)
>>配列のインデックス付けが無効です。
などとなってしまいます。
0 Commenti
Risposta accettata
Hernia Baby
il 8 Mag 2021
formula関数でシンボリック関数の本体を返せば可能です。
syms x(t) [2 3];
X = formula(x);
X(:,1)
ans =
x1_1(t)
x2_1(t)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su シンボリックと数値間の変換 in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!