作者qazxswedcr (1212121212)
看板MATLAB
標題[討論] matlab求解微分方程式
時間Wed Apr 29 10:37:29 2015
小弟剛用matlab不久
y(0)=1,y'(0)=0
y=(c1+c2t)exp(-Wnt),Wn為已知
這樣可以求出c1,c2嗎
要用哪種指令呢跪求大大指引QQ
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 210.241.56.108
※ 文章網址: https://www.ptt.cc/bbs/MATLAB/M.1430275052.A.90D.html
→ celestialgod: symbolic toolbox有工具可以做 04/29 12:09
→ celestialgod: syms c1 c2; y = @(wn, t) your function; 04/29 12:10
→ celestialgod: solve(diff(y(wn, 0))==0, y(wn, 0) == 1) 04/29 12:11
推 sherees: help ode45 05/10 13:41