x=linspace(0,23,24);
y1=linspace(0,23,24)+5;
y2=linspace(0,23,24)-5;
h=fill([x,fliplr(x)],[y1,fliplr(y2)],'r');
% 改变边缘、面透明度
set(h,'edgealpha',0,'facealpha',0.3)
https://ww2.mathworks.cn/help/matlab/ref/matlab.graphics.primitive.surface-properties.html
本文来自博客园,作者:Clay,转载请注明原文链接:https://www.cnblogs.com/clayyjh/p/18124892