close
MATLAB微分
假設t=[0:0.001:5];xr=sin(12.57*t);一次微分xrdot=12.57*cos(12.57*t);二次微分xrdoubledot=-158*sin(12.57*t);請問那.m的程式要怎麼寫??
代數解 syms t xr=sin(12.57*t) xrdot=diff(xr) xrdoubledot=diff(diff(xr)) 數值解 t=[0:0.001:5]; 把上面解出來函數代入數值t 在此例是 sin(12.57*t) 12.57*cos(12.57*t); -158*sin(12.57*t);
以上文章來自奇摩知識家,如有侵犯請留言告知
https://tw.answers.yahoo.com/question/index?qid=20070331000010KK04422