i got this differential equation:
function xdot=tresorden(t,x)xdot=zeros(3,1);Vp=5;Vi=Vp*square(2*pi*t)+5;xdot(1)=x(2);xdot(2)=x(3);xdot(3)=6*Vi-6*x(1)-11*x(2)-6*x(3);xdot=[xdot(1);xdot(2);xdot(3)];
how can i represent x(1)?
ode45
function xdot=tresorden(t,x)xdot=zeros(3,1);Vp=5;Vi=Vp*square(2*pi*t)+5;xdot(1)=x(2);xdot(2)=x(3);xdot(3)=6*Vi-6*x(1)-11*x(2)-6*x(3);xdot=[xdot(1);xdot(2);xdot(3)];
Best Answer