Why I can't run this coding?
1 回表示 (過去 30 日間)
古いコメントを表示
syms q1 t
%q1(t)
h=q1
q1_of_t=sym('q1(t)')
h1=subs(h,q1,q1_of_t)
%diff q1(t),diff twice q1(t)
diff_q1t=diff(h1,t);
diff_q1t2=diff(diff_q1t,t);
% t is for time
% q1_of_t=sym('q1(t)') - can't run in Matlab online but actually 3 years
% ago its can run in dowloaded matlab
0 件のコメント
採用された回答
VBBV
2022 年 10 月 25 日
syms q1(t) t
%q1(t)
h=q1
q1_of_t=symfun('q1(t)',t)
h1=subs(h,q1,q1_of_t)
%diff q1(t),diff twice q1(t)
diff_q1t=diff(h1,t);
diff_q1t2=diff(diff_q1t,t)
% t is for time
% q1_of_t=sym('q1(t)') - can't run in Matlab online but actually 3 years
% ago its can run in dowloaded matlab
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!