Partial derivative of a time derivative
6 views (last 30 days)
Show older comments
Hello,
I have the following code:
syms('qxy(t)',[2,1]); qxy = formula(qxy);
u1 = formula(qxy);
u1_dot = formula(diff(u1,t));
T = diff(u1_dot(1),diff(qxy1(t), t));
Here I create a symbolic u1 with qxy1(t) and qxy2(t).
Then I take the derivative wrt time of u1 to get u1_dot, with elements diff(qxy1(t), t) and diff(qxy2(t), t).
Now I want to take the partial derivative of u1 wrt diff(qxy1(t), t) and diff(qxy2(t), t)
So in formula form for u1_dot(1):
But if I run this code, I get an error instead of the value 1.
Does someone know how to solve this?
Thanks!
3 Comments
Answers (1)
VBBV
on 19 Oct 2020
I don't get any error It shows the result as T = 1 as you mentioned.
%if true
% code
% end
syms('qxy(t)',[2,1]); qxy = formula(qxy);
u1 = formula(qxy);
u1_dot = formula(diff(u1,t));
T = diff(u1_dot(1),diff(qxy1(t), t));
>>
T =
1
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!