MATLAB: Not getting direction field for an ode in a proper way.

direction field

Dear all
I am new at drwing th direction field for DE. I have drwn the direction field for DE: dy/dt=9.80.196y, but the figure i got, is very much different from the desired one. The arrows and the way they are appearing in this figure are not similar to which we see in a usal direction field picture.
I am posting he figures, which i got .
The code is:
y=0:1:80;
t=0:.1:8;
[Y,T]=meshgrid(y,t);
dy=9.8-0.196*y;
r=(dy.^2).^0.5;
u=dy./r;
quiver(t,y,1./r,u,.5);

Best Answer

Correct answer