i was given these equations to solve with ode15s ( dy(1)=y(2), dy(2)=0, dy(3)=y(4), dy(4)=-g), initial conditions y(1)=0, y(2)=v(cosa), y(3)=0, y(4)=v(sina) but it keeps telling me i dont have enough input arguments
Info
This question is closed. Reopen it to edit or answer.
Show older comments
function dy = func(t,y) dy=zeros(4,1) g=9.81 v=10 a=45 dy(1)=y(2) dy(2)=0 dy(3)=y(4) dy(4)=-g [t,y]=ode15s(@func, [0 20], [0 v*cos*a 0 v*sin*a]) plot(y(:,1),y(:,3))
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!