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!