Effacer les filtres
Effacer les filtres

Can I derive a dependent variable in Matlab?

1 vue (au cours des 30 derniers jours)
Angel Quintanilla
Angel Quintanilla le 4 Mar 2020
Ex.
y=x(t) so that y'=x'(t)
  1 commentaire
Walter Roberson
Walter Roberson le 4 Mar 2020
Please give more context? Your tag "system modeling" suggests that you are not talking about the Symbolic Toolbox?

Connectez-vous pour commenter.

Réponse acceptée

Koushik Vemula
Koushik Vemula le 9 Mar 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

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by