代码: x=linspace(0,10); y1=sin(x)-1; y2=sin(x); h=fill([x,fliplr(x)],[y1,fliplr(y2)],'r') % 改变边缘、面透明度 set(h,'edgealpha',0,'facealpha',0.3) 效果: