Final answer:
The median of each row of the exampleArray after applying the MATLAB command 'median(exampleArray, 2)' is [6; 7; -1], which corresponds to option C.
Step-by-step explanation:
The MATLAB command x = median(exampleArray, 2) calculates the median of each row of the exampleArray. When the second argument is 2, the function operates across the rows. Let's calculate the median for each row:
- Row 1: [4, 6, 10] - Median is 6
- Row 2: [11, 7, 6] - Median is 7
- Row 3: [0, -1, -4] - Median is -1
Therefore, the resulting array x after running the command will be:
[6;7;-1]
This matches option C) [6; 7; -1] which is the correct answer to the student's question.