145k views
0 votes
In MATLAB several functions default to along the first non-singleton dimension, if you do not provide a dimension argument. Given the MATLAB variable: C = [ 6,8,10; 12,4,11 ] Which answer below provides the value of E if: E = min(C, [ ], 2)

A) 6, 4
B) 8, 4
C) 4, 8
D) 10, 11

User Dorcas
by
7.5k points

1 Answer

1 vote

Final answer:

The value of E is 4, 8.

Step-by-step explanation:

The given MATLAB variable is C = [6,8,10; 12,4,11]. The function min() is used to find the minimum value between two arrays or matrices. The argument [ ] is used to indicate to the function that no second array or matrix is given. The argument 2 is used to specify that the function should operate along the second dimension of the matrix. In this case, it means that the minimum value should be found for each row of the matrix.

Therefore, the value of E would be 4, 8. The minimum values for each row of the matrix are 6, 4 for the first row and 8, 4, 11 for the second row.

User Aidonsnous
by
7.2k points