Q:

Create a 3 x 5 matrix. Perform each of the following: >> mat = randi([-10 10], 3,5)

0
  1. Find the maximum value in each column.
  2. Find the maximum value in each row.
  3. Find the maximum value in the entire matrix
  4. Find the cumulative maxima. 

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answers :

1/ 

 max(mat)

2/ 

 max(mat, [], 2)
 max(mat')

3/ 

 max(max(mat))

4/ 

 cummax(mat)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now