Can I derive a dependent variable in Matlab?

4 Ansichten (letzte 30 Tage)
Angel Quintanilla
Angel Quintanilla am 4 Mär. 2020
Beantwortet: Koushik Vemula am 9 Mär. 2020
Ex.
y=x(t) so that y'=x'(t)
  1 Kommentar
Walter Roberson
Walter Roberson am 4 Mär. 2020
Please give more context? Your tag "system modeling" suggests that you are not talking about the Symbolic Toolbox?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Koushik Vemula
Koushik Vemula am 9 Mär. 2020
According to my understanding you want to create a variable ‘y’ which is dependent on variable ‘x’
You can do it using syms module.
Creating variable y dependent on t
syms y t %defining y and t as variables
y=t*t + 3 %for example
diff(y)
Here the function diff represents differentiation of the variable y.
For more understanding of the module syms refer this link: https://www.mathworks.com/help/symbolic/syms.html

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by