rectangle('Position',[100,300,70,50],'Curvature',[0,0],'LineWidth',2,'LineStyle','--','EdgeColor','r')
% rectangle('Position',[x,y,宽,高],'Curvature',[x曲率,y曲率],'LineWidth',‘线宽,'LineStyle','线型','雹哪EdgeColor','线色')
2. patch
H_pa = patch([0.02,0.02,2,2],[0.01, 10,10,0.01],[.8 .8 .8])
% patch([Xleft, Xleft, Xright, Xright], [Ydown, Yup, Yup, Ydown],[阴影颜色])
set(H_pa,'源槐码EdgeColor',[.8 .8 .8],'EdgeAlpha',0.5,'FaceAlpha',0.5)
%set(H_pa,'EdgeColor',[边框颜色],'EdgeAlpha',边框透明度,'FaceAlpha',阴明此影透明度)
qujian=inputdlg({'输入a','输入b'})%如 1 3F1=str2double(qujian{1})
F2=str2double(qujian{2})
x=linspace(-5,5)
y=normpdf(x,0,1)
x1=F1:0.01:F2
y1=normpdf(x1,0,1)
figure('color','w')
plot(x,y,'弊族k')
xlabel('标准正态分布函数租稿弊')
hold on
area(x1,y1)
hold off
按上面语敬御句试试
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)