Question: Please include script code and output (Use MATLAB, do NOT do by hand) Using MATLAB R2017b: Given vector a = [8, 6, 4] and integer

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

Using MATLAB R2017b:

Given vector a = [8, 6, 4] and integer number n = 4 create matrix b containing n-times a(1) in the first row, n-times a(2) in the second row, etc. (i.e. b = [8, 8, 8, 8; 6, 6, 6, 6; 4, 4, 4, 4]). Then, create a vector x = [3, 1, 2, 5, 4]. From x create y containing the same elements in the reverse order, find indices of elements greater than 2, create z containing elements of x which are smaller than 4.

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!