Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

ES 301 Engineering Analysis HW #01 of 2 o HW #01: Print your m.file for the last problem and attach to the homework Problems: 1. The normal distribution function in statistics (also known as the Gaussian distribution or bell curve) is given by the equation: The exponent in this equation is negative z squared divided by 2. Use Matlab to generate a plot of this function from z--3 to 3, Label the plot "Gaussian Distribution", the ordinate "Frequency", and the abscissa "z" You may wish to try different methods of generating the problem's range in order to obtain a "smooth" curve Use the linspace function to create vectors equal to those created with the colon operator shown below. In your solution, show the commands for both methods of creation and show that the outputs are the same. That is, show the interactive Matlab command session. 2. t-5:5:30 x--3:3 hw01

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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote