Question: (a) Create a script called lab0202.m that solves the following problems. Put your name in the script. Label each evaluation with a comment and use

 (a) Create a script called lab0202.m that solves the following problems.

(a) Create a script called lab0202.m that solves the following problems. Put your name in the script. Label each evaluation with a comment and use appropriate variables. Create a column vector that has 28 elements with all values equal to 56.87. Use both the ones and zeros functions to accomplish this task. Create a vector of random numbers with 49 values (you may use the randi function if you want integers). Find the sum and product of all values in your vector; sort your vector; find the mean, median, and standard deviation of your data set; determine the length and size of your vector; find the maximum and minimum values; find the value in positions 5,9,12,34 and add them together; plot your data using the bar function

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!