|
<>function xprim=xprim1(t,x)
xprim=-x.^2;
[t,x]=ode45('xprim1',[0,1],1);
plot(t,x,'-',t,x,'0');
xlabel('time to=0,tt=1');
ylabel('x values x(0)=1');</P>
<>为什么会显示??? Input argument 'x' is undefined.</P>
<>Error in ==> d:\MATLAB\work\xprim1.m
On line 2 ==> xprim=-x.^2;
</P> |
|