How do you declare a symbolic function of time as a real variable

4 ビュー (過去 30 日間)
Kevin Bachovchin
Kevin Bachovchin 2013 年 6 月 10 日
コメント済み: Walter Roberson 2017 年 4 月 19 日
Hello,
I have several symbolic functions of time which I would like to declare as real. How can I do this?
syms x1(t) x2(t) x3(t) real
does not work because later when I say X = [x1 ; x2 ; x3], the expressions for X involve conjugates.
Thank you,
Kevin

回答 (2 件)

Walter Roberson
Walter Roberson 2013 年 6 月 10 日
You could try adding an assumption that imag(x1(t)) == 0
  1 件のコメント
Walter Roberson
Walter Roberson 2017 年 4 月 19 日
You can
assumeAlso(diff(x1(t),t),'real')
assumeAlso(diff(x2(t),t),'real')

サインインしてコメントする。


Azzi Abdelmalek
Azzi Abdelmalek 2013 年 6 月 10 日
syms t
x1=sin(t) % Example
  7 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 6 月 10 日
they become function of t when you define them
Kevin Bachovchin
Kevin Bachovchin 2013 年 6 月 10 日
The following code
syms x1(t) x2(t)
X = [x1(t) x2(t)]
diff(X,t)
yields [ diff(x1(t), t), diff(x2(t), t)]
The following code
syms x1(t) x2(t)
X = [x1(t) ; x2(t)]
diff(X,t)
yields
[ diff(conj(x1(t)), t)
diff(conj(x2(t)), t)]
Is there any way I can declare x1 and x2 so that I get
[ diff(x1(t), t)
diff(x2(t), t)]

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAssumptions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by