fgabertb
2008-06-13, 10:18
可以參考 quiver指令
[X,Y] = meshgrid(-2:.2:2);
Z = X.*exp(-X.^2 - Y.^2);
[DX,DY] = gradient(Z,.2,.2);
contour(X,Y,Z)
hold on
quiver(X,Y,DX,DY)
colormap hsv
hold off
:smile:
fanxing39
2008-06-15, 03:29
极坐标的 好像有箭头哦,楼上 回答的真详细,给你加5分哈 :tongue:
vBulletin® v3.8.3,版权所有 ©2000-2025,Jelsoft Enterprises Ltd.