MATLAB Answers

H
0

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

Asked by H
on 21 Oct 2018
Latest activity Edited by H
on 22 Oct 2018

  1 Comment

You did not add an image.

Sign in to comment.

3 Answers

Answer by YT
on 21 Oct 2018
Edited by YT
on 21 Oct 2018

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:

  0 Comments

Sign in to comment.


Answer by cdeliu
on 21 Oct 2018

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

  3 Comments

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.
If X has a standard normal distribution, then (X^2)/2 has a gamma distribution with parameters lambda=1 and a=1/2.
Is the function f(x) a gamma function then? What’s the relationship between lamda and sigma?

Sign in to comment.


Answer by H
on 21 Oct 2018

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

  0 Comments

Sign in to comment.