matlab怎样对等值线图进行修饰,例如线粗细

2024-11-18 19:37:53
推荐回答(2个)
回答1:

加粗信腔手的话修改LineWidth的值。
例圆袭程序:
[X,Y] = meshgrid(-2:.2:2,-2:.2:3);
Z = X.*exp(-X.^2-Y.^2);
[C,h] = contour(X,Y,Z,'LineWidth'滑嫌,5);

满意请采纳,有问题请追问,谢谢!

回答2:

>> x=-1:0.01:1;
>> y=-1:0.02:1;
>> [xx,yy]=meshgrid(x,y);
>> zz=xx.^2+yy.^2;
>> contour(xx,yy,zz,20)

>> figure
%left,right,top,bottom为仔基去掉的部分
>> left=-0.4;
>> right=0.6;
>> top=-0.1;
>> bottom=-0.5;
>> zz(find((xx>left).*(xx<御戚歼right).*(yy>镇冲bottom).*(yy>> contour(xx,yy,zz,20)