Dear Altruist,
I want to make such figure in MATLAB. My code is attached here. I want to shade the area like the red area in figure.
x1 = [-4:.1:4];
y1 = normpdf(x1,0,1);
plot(x1,y1)

 채택된 답변

Paul
Paul 2023년 1월 22일

0 개 추천

x1 = [-4:.1:4];
y1 = normpdf(x1,0,1);
x = [-4:0.1:-1.5];
plot(x1,y1)
hold on
area(x,normpdf(x,0,1))
See area for options for customization

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2023년 1월 22일

댓글:

2023년 1월 22일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by