Home > other >  matlab
matlab

Time:11-15

This Matlab missile tracking problem, why do I have to track is a 0 of the straight line, with the target trajectory intersection, below is my code, a great god help
The function dy=myfun (x, y)
Dy=zeros (2, 1);
Dy (1)=y (2);
Dy (2)=(y (2) ^ 2 * SQRT (1 + y (2) ^ 2))/(1.6 x + y (1) (4000));

[x, y)=ode15s (" myfun ", [- 3000 0], [0, 0]).
Plot (x, y (:, 1), '-')
Hold on
X1=- 3000:0;
The plot (x1, - 4000, the '*')