Question: Matlab 1 Create a vector z with 1000 elements generated with the randn function. The generated values must have a mean value of 12 and

Matlab

1 Create a vector z with 1000 elements generated with the randn function. The generated values must have a mean value of 12 and a standard deviation of 1100x12.6. The use histogram function and the plot histogram of x, y and z in the same figure window.

2

Use the cumsum function and find the cumulative sum (also known as the prefix sum) of z and save it in the vector a. Create a new figure window and plot a in a "subplot".

3

Use the cumsum function and find the cumulative sum of z - 12 and store it in the vector b. Plot b in a "subplot" next to or below the previous one

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!