boxom.m

来自「蒙特卡罗方法及其例子」· M 代码 · 共 21 行

M
21
字号
function ymod=boxoM(data,theta)% model function for the boxo example% starting concentrations are at the end of the parameter vectory0 = theta(end-1:end);% time is the first column of data.ydatat  = data.ydata(:,1);% if using lsode mex, save parameter vector in global variableglobal lsode_datalsode_data = theta;if exist('lsode_mex') == 3  % use much faster mex code for ode  [tout,y] = lsode22('internal',t,y0);else  [tout,y] = ode45(@boxoODE,t,y0,[],theta);endymod = y;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?