Question: Using MATLAB: 1. Let y be a column vector: y = [1, 2, 3, 4, 5, 6] so that y.shape = (6,1). Reshape the vector

Using MATLAB: 1. Let y be a column vector: y = [1, 2, 3, 4, 5, 6] so that y.shape = (6,1). Reshape the vector into a matrix z using the numpy.array.reshape and (numpy.array.transpose if necessary) to form a new matrix z whose first column is [1, 2, 3], and whose second column is [4, 5, 6]. Print out the resulting array z.

2. Find the minimum value of A, if there are multiple entries with the same minimum value it is fine to return the first one. Set r to be the row in which it occurs and c to be the column. Print out r, c, and A[r,c].

3. Let v be the vector: v = [1,8,8,2,1,3,9,8]. Using the unique function, compute and print the total number of unique values that occur in v.

Thank you so much!

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!