Matlab如何画等值线图

2024-11-11 04:01:36
推荐回答(1个)
回答1:

可以查看contour函数

>> x = -2:0.2:2;

>>y = -2:0.2:3;

>>[X,Y] = meshgrid(x,y);

>>Z = X.*exp(-X.^2-Y.^2);

>>figure

>>contour(X,Y,Z,'ShowText','on')