matlab 中Z = X.*exp(-X.^2 - Y.^2);具体意思?
具体代码:[X,Y]=meshgrid(-2:.2:2);Z=X.*exp(-X.^2-Y.^2);[DX,DY]=gradient(Z,.2,.2);contour(X...
具体代码:
[X,Y] = meshgrid(-2:.2:2);
Z = X.*exp(-X.^2 - Y.^2);
[DX,DY] = gradient(Z,.2,.2);
contour(X,Y,Z); %等高线
figure,quiver(X,Y,DX,DY); 展开
[X,Y] = meshgrid(-2:.2:2);
Z = X.*exp(-X.^2 - Y.^2);
[DX,DY] = gradient(Z,.2,.2);
contour(X,Y,Z); %等高线
figure,quiver(X,Y,DX,DY); 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询