wem 发表于 2006-8-28 20:30

绘制引力线图,大家一起讨论!

=meshgrid(-3:.2:3, -2:.2:2);
z=x.^2.*exp(-x.^2-y.^2);
=gradient(z,0.2,0.2);
contour(x,y,z,30);
hold on; quiver(x,y,fx,fy)
页: [1]
查看完整版本: 绘制引力线图,大家一起讨论!