Can someone help me out with this matlab problem? I\'m having problems with ques
ID: 3299131 • Letter: C
Question
Can someone help me out with this matlab problem?
I'm having problems with question one. So far I have:
z=[-3:10:3];
g = exp((z^2)/2);
f = (1/sqrt(2*pi))*g
plot(z,f)
title('Guassian Distribution')
xlabel('z')
ylabel('Frequency')
grid
Explanation / Answer
The code is as follows:
z=[-3:0.01:3]; ## creates an array containing values from -3 to 3 with step 0.01, i.e. -3, -2.99 and so on upto 3
g = exp(-(z.z)/2); ## the f(z) function as given
plot(z,f)
title('Guassian Distribution')
xlabel('z')
ylabel('Frequency')
grid
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.