如何在Matlab中绘制特定的轮廓线

时间:2016-05-09 23:09:42

标签: matlab contourf

考虑这个例子:

X = 0:0.01:1;
Y = 0:0.01:1;
[x,y] = meshgrid(X,Y);
z = sin(x.*y);
contourf(x,y,z,'ShowText','on')

enter image description here

自动确定轮廓值。如何使用[0.1,0.3,0.44,0.63,0.78,0.89]等特定值绘制特定轮廓线?

1 个答案:

答案 0 :(得分:-3)

如果所需的值是

order_by="TimeZone.id"

然后我们

  v = [0.1,0.3,0.44,0.63,0.78,0.89]

矢量'v'的位置必须在'z'之后。