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)

 Respuesta aceptada

Paul
Paul el 22 de En. de 2023

0 votos

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

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Centro de ayuda y File Exchange.

Productos

Versión

R2020a

Etiquetas

Preguntada:

el 22 de En. de 2023

Comentada:

el 22 de En. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by