办法1. 函数:fill
- 举例解释:应力散布云图
x=[0 1 1 0 0]; %x坐标
y=[0 0 1 1 0]; %y坐标
stress=[1 2 3 4 1] %应力大小
fill(x,y,stress); %填充
shading interp; %色采平滑
colorbar; %散布柱图
axis equal; %坐标轴相等x=[0 1 1 0 0]; x=[0 1 1 0 0]; %x坐标
y=[0 0 1 1 0]; %y坐标
stress=[1 2 3 4 1] %应力大小
fill(x,y,stress); %填充
shading interp; %色采平滑
colorbar; %散布柱图
axis equal; %坐标轴相等x=[0 1 1 0 0];