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

1 件のコメント

Shariful Islam
Shariful Islam 2023 年 1 月 22 日
Thanks a lot!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Migrate GUIDE Apps についてさらに検索

製品

リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by