MATLAB等值线间距A=[0 0 0.350 30 0.360 60 0.40 90 0.40 120 0.450 135 0.470 150 0.480 165 0.510 180 0.530 210 0.570 240 0.60 255 0.630 270 0.690 285 0.760 300 0.824 0 0.414 30 0.434 60 0.444 90 0.524 120 0.534 135 0.594 150 0.614 165 0.654 180 0.7
MATLAB等值线间距A=[0 0 0.350 30 0.360 60 0.40 90 0.40 120 0.450 135 0.470 150 0.480 165 0.510 180 0.530 210 0.570 240 0.60 255 0.630 270 0.690 285 0.760 300 0.824 0 0.414 30 0.434 60 0.444 90 0.524 120 0.534 135 0.594 150 0.614 165 0.654 180 0.7
MATLAB等值线间距
A=[0 0 0.35
0 30 0.36
0 60 0.4
0 90 0.4
0 120 0.45
0 135 0.47
0 150 0.48
0 165 0.51
0 180 0.53
0 210 0.57
0 240 0.6
0 255 0.63
0 270 0.69
0 285 0.76
0 300 0.82
4 0 0.41
4 30 0.43
4 60 0.44
4 90 0.52
4 120 0.53
4 135 0.59
4 150 0.61
4 165 0.65
4 180 0.75
4 210 0.88
4 240 0.92
4 255 0.96
4 270 1
4 285 1.1
4 300 1.2
8 0 0.5
8 30 0.51
8 60 0.53
8 90 0.67
8 120 0.64
8 135 0.68
8 150 0.85
8 165 1.02
8 180 1.13
8 210 1.23
8 240 1.25
8 255 1.29
8 270 1.3
8 285 1.35
8 300 1.5];
x=A(:,1);
y=A(:,2);
z=A(:,3);
xmin=min(x); xmax=max(x);
ymin=min(y); ymax=max(y);
[xx,yy]=meshgrid(linspace(xmin,xmax,30),linspace(ymin,ymax,30));
zz=griddata(x,y,z,xx,yy,'v4');
[c,h]=contour(xx,yy,zz);
clabel(c,h)
x=A(:,1);
y=A(:,2);
z=A(:,3);
xmin=min(x); xmax=max(x);
ymin=min(y); ymax=max(y);
[xx,yy]=meshgrid(linspace(xmin,xmax,20),linspace(ymin,ymax,20));
zz=griddata(x,y,z,xx,yy,'v4');
[c h]=contour2(xx,yy,zz);
clabel(c,h)
colormap('gray')
colormap('gray')
用以上语言做等值线图,间距为0.1,请问如何调整语句,使等值线间距变为0.05.
MATLAB等值线间距A=[0 0 0.350 30 0.360 60 0.40 90 0.40 120 0.450 135 0.470 150 0.480 165 0.510 180 0.530 210 0.570 240 0.60 255 0.630 270 0.690 285 0.760 300 0.824 0 0.414 30 0.434 60 0.444 90 0.524 120 0.534 135 0.594 150 0.614 165 0.654 180 0.7
[c h]=contour2(xx,yy,zz,[0.35:0.05:1.4]);