Borrar filtros
Borrar filtros

Can I derive a dependent variable in Matlab?

3 visualizaciones (últimos 30 días)
Angel Quintanilla
Angel Quintanilla el 4 de Mzo. de 2020
Respondida: Koushik Vemula el 9 de Mzo. de 2020
Ex.
y=x(t) so that y'=x'(t)
  1 comentario
Walter Roberson
Walter Roberson el 4 de Mzo. de 2020
Please give more context? Your tag "system modeling" suggests that you are not talking about the Symbolic Toolbox?

Iniciar sesión para comentar.

Respuesta aceptada

Koushik Vemula
Koushik Vemula el 9 de Mzo. de 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

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by