How do you declare a symbolic function of time as a real variable
Mostra commenti meno recenti
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
1 Commento
Ezequiel Garcia
il 18 Apr 2017
bump
Risposte (2)
Walter Roberson
il 10 Giu 2013
1 voto
You could try adding an assumption that imag(x1(t)) == 0
1 Commento
Walter Roberson
il 19 Apr 2017
You can
assumeAlso(diff(x1(t),t),'real')
assumeAlso(diff(x2(t),t),'real')
Azzi Abdelmalek
il 10 Giu 2013
syms t
x1=sin(t) % Example
7 Commenti
Kevin Bachovchin
il 10 Giu 2013
Modificato: Kevin Bachovchin
il 10 Giu 2013
Azzi Abdelmalek
il 10 Giu 2013
If x1 is unknown, how will you define it?
Kevin Bachovchin
il 10 Giu 2013
Azzi Abdelmalek
il 10 Giu 2013
Modificato: Azzi Abdelmalek
il 10 Giu 2013
Use x1.' instead of x1'
syms x1 x2
x=[x1;x2]
x.'
Kevin Bachovchin
il 10 Giu 2013
Azzi Abdelmalek
il 10 Giu 2013
they become function of t when you define them
Kevin Bachovchin
il 10 Giu 2013
Categorie
Scopri di più su Symbolic Math Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!