Can I derive a dependent variable in Matlab?
4 次查看(过去 30 天)
显示 更早的评论
Ex.
y=x(t) so that y'=x'(t)
1 个评论
Walter Roberson
2020-3-4
Please give more context? Your tag "system modeling" suggests that you are not talking about the Symbolic Toolbox?
采纳的回答
Koushik Vemula
2020-3-9
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
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!