Question: Arrange the following code to read in 1 0 values from a user and store them in a vector. Then print out the mean of

Arrange the following code to read in 10 values from a user and store them in a vector. Then print out the mean of the values entered.
sum =0
% this program fills a vector with 10 values entered by the user and then prints the average of the entered values
vec(i)= input('Enter a number: ');
sum = sum +vec(i)
fprintf('The mean of the entered values is %f' 'sum/10);
 Arrange the following code to read in 10 values from 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!