IN MATLAB Which of the following would extract 8 from the ma

IN MATLAB:

Which of the following would extract 8 from the matrix shown below? Mat = 3 4 5 8 9 9 7 2 7 y = mat(1, 2); y = mat(2, 1); y = mat[1, 2]; y = mat[2, 1]; None of the above

Solution

Now here 8 is at row 2 and colum 1 hence we need to pass on indices as 2,1

so option second mat(2,1) will extract 8 from the given matrix.

IN MATLAB: Which of the following would extract 8 from the matrix shown below? Mat = 3 4 5 8 9 9 7 2 7 y = mat(1, 2); y = mat(2, 1); y = mat[1, 2]; y = mat[2, 1

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site