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

posted on 2024-04-09 21:32  clayyjh  阅读(33)  评论(0编辑  收藏  举报