Time-dependent derivatives of a function with vector-valued components

1 回表示 (過去 30 日間)
Lilli
Lilli 2014 年 6 月 30 日
回答済み: VBBV 2022 年 12 月 17 日
x = sym('x',[1 3]);
returns a vector-valued variable x=(x(1),..x(3)). I want each component to depend on the time, which for a scalar vaiebale I would get by
x = sym('x(t)');
I don't see a way to combine these two statements in order to obtain vector-valued variables where each component depends on the time.
I need this to calculate (total and partial) time derivatives of a function f(x(t)) where x=(x_1(t),..x_3(t))).
Thanks in advance.

回答 (1 件)

VBBV
VBBV 2022 年 12 月 17 日
instead of using sym use syms for defining vector valued functions with multple variables, e.g. x and t
syms 'x(t)' [1 3]
x
x(t) = 

カテゴリ

Help Center および File ExchangeConversion Between Symbolic and Numeric についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by