Fw: [問題] Use my own ODE solver in Matlab?

看板MATLAB作者時間11年前 (2013/03/25 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
※ [本文轉錄自 Programming 看板 #1HJuoamQ ] 作者: cckh () 站內: Programming 標題: [問題] Use my own ODE solver in Matlab? 時間: Mon Mar 25 07:30:42 2013 I have a quick question to ask. In Matlab when solving ODE we use ode45, ode23, etc based on different needs, by using [t,x] = ode45('sir', [0 10], [1000 1 0], options); where my function is called 'sir' in this case. However, is there way to use my own solver instead of standard solvers provided by Matlab? For example, suppose my ODE solver is called mySolver.m When I use [t,x] = mySolver('sir', [0 10], [1000 1 0], options); it shows the following error message: Undefined function or method 'odearguments' for input arguments of type 'struct'. But I already added the path where mySolver.m is located. Can anyone help me solve this problem? Thank you very much. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 50.192.47.134 ※ 發信站: 批踢踢實業坊(ptt.cc) ※ 轉錄者: cckh (50.192.47.134), 時間: 03/25/2013 07:32:27
文章代碼(AID): #1HJuqDv9 (MATLAB)