シンボリック関数を使​用したシンボリック行​列の要素を参照する方​法

3 visualizaciones (últimos 30 días)
taro
taro el 8 de Mayo de 2021
Comentada: taro el 11 de Mayo de 2021
syms x(t) [2 3]
>>
この場合にx(t)の1列目、すなわち
>>
を参照する方法はありますか?
x(t)(:,1)
>>配列のインデックス付けが無効です。
などとなってしまいます。

Respuesta aceptada

Hernia Baby
Hernia Baby el 8 de Mayo de 2021
formula関数でシンボリック関数の本体を返せば可能です。
syms x(t) [2 3];
X = formula(x);
X(:,1)
ans =
x1_1(t)
x2_1(t)
  1 comentario
taro
taro el 11 de Mayo de 2021
ありがとうございます!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!