Hi, How can I plot the functions below on Matlab?

Respuestas (3)

YT
YT el 21 de Oct. de 2018
Editada: YT el 21 de Oct. de 2018

1 voto

Because your question only contains formulas without any other information on what x or lambda are, I'll give you a standard answer on how to plot:
vandeleeuw
vandeleeuw el 21 de Oct. de 2018

0 votos

You can use probability density functions:
y1=gampdf(x+1/lambda,2,1/lambda); y2=normpdf(x);

3 comentarios

H
H el 21 de Oct. de 2018
How both functions related? Is there any relationship between normal distubion and gamma distribution? And I want to compare what happenns around the maximum of both function. For that I need to see in 3 different graphs with different axis.
vandeleeuw
vandeleeuw el 22 de Oct. de 2018
If X has a standard normal distribution, then (X^2)/2 has a gamma distribution with parameters lambda=1 and a=1/2.
H
H el 22 de Oct. de 2018
Editada: H el 22 de Oct. de 2018
Is the function f(x) a gamma function then? What’s the relationship between lamda and sigma?

Iniciar sesión para comentar.

H
H el 21 de Oct. de 2018

0 votos

What if I say lambda=1.1 and -5<=x<=5.

Etiquetas

Preguntada:

H
H
el 21 de Oct. de 2018

Editada:

H
H
el 22 de Oct. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by