Question: Please include script code and output (Use MATLAB, do NOT do by hand) Using MATLAB R2017b: Write a program to find the average of 25

Please include script code and output (Use MATLAB, do NOT do by hand)

Using MATLAB R2017b:

Write a program to find the average of 25 random uniformly distributed elements that are in interval [0, 10]. Then generate and display (bar and histogram) a random signal of length 25 with elements uniformly distributed in the interval [2, 2].

a=4*rand(1,25)- 2 % (b-a) *rand(1,25) + a bar(a) hist(a)

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!