|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
opions=odeset('Reltol',[1e-4],'Abstol',[1e-6])
T0=903;
P0=0.1e+6;
y0=[0;0;0;T0;0;P0];
[t,y]=ode45('yifan',[0.8 1.4],y0,opions,N1,Neb01,rou_b,L1,qn0);
h=size(y);
e=h(1);
f=y(e,:);
X1=f(1)+f(2)+f(3);
执行结果是:
opions =
AbsTol: 1.0000e-006
BDF: []
Events: []
InitialStep: []
Jacobian: []
JConstant: []
JPattern: []
Mass: []
MassConstant: []
MassSingular: []
MaxOrder: []
MaxStep: []
NonNegative: []
NormControl: []
OutputFcn: []
OutputSel: []
Refine: []
RelTol: 1.0000e-004
Stats: []
Vectorized: []
MStateDependence: []
MvPattern: []
InitialSlope: []
??? Error using ==> feval
Undefined command/function 'yifan'.
Error in ==> funfun\private\odearguments at 110
f0 = feval(ode,t0,y0,args{:}); % ODE15I sets args{1} to yp0.
Error in ==> ode45 at 173
[neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ...
Error in ==> ZUOYE22 at 30
[t,y]=ode45('yifan',[0.8 1.4],y0,opions,N1,Neb01,rou_b,L1,qn0);
[ 本帖最后由 eight 于 2007-12-6 18:39 编辑 ] |
|