السلام عليكم لدي مشكلة في حل معادلة تفاضلية بواسطة ODE23 هدا هو البرنامج
function xdot=pend(t,x);
xdot(1)=x(2);
xdot(2)=-10*sin(x(1))-x(2);
xdot=[xdot(1);xdot(2)];
for i=1:20
t_ini=[0 5];
x0=[0 0+i];
[t,x]=ode23(‘pend’,t_int,x0);
plot(x(:,1),x(:,2));
hold on
end
عند اجراء RUN بيطلعلي مساج فيه
??? Input argument “x” is undefined.
Error in ==> pend at 2
xdot(1)=x(2);
ياريت تساعدونيييييييييييييييييييييييييييييي
[[IMG]http://www.dbaasco.com/vb/images/d-style/buttons/quote.gif[/IMG]](http://www.dbaasco.com/vb/newreply.php?do=newreply&p=32473)