Question: program used is MATLAB 1. (3 points) Write a MATLAB program (a2q1.m) that first defines and outputs a vector x with the following values: 150

 program used is MATLAB 1. (3 points) Write a MATLAB program
program used is MATLAB

1. (3 points) Write a MATLAB program (a2q1.m) that first defines and outputs a vector x with the following values: 150 -120, 90, 60, 30. 0, 30, 60, 90, 120, 150 Then, using a vector variable y, calculate and output y = 4 + 7 sin(x) * cos(x). Use shorthand notation to deline X and element-by-clement calculations to compute y. Finally, compute and output the mean of the values in y. 2. (4 points) Write a MATLAB program (a2q2.m) that begins by defining vectors and y as follows * - 55.52, 49. 46. 43.40 and y is 5131921 Use shorthand notation. Do not output the values in x and y Then, use the vectors in element-by-element calculations to construct and output a vector 2 as follo Finally, compute und output the mean of the values in 4 ports Write a MATLAB program (alg3.mto define a vectors that takes the values 12.3456 and then use this vector in mathematical expression create and output the cost 12. and mos ulls

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!