Fortune Telling Collection - Fortune-telling birth date - How to find the maximum and minimum value of matrix in matlab?

How to find the maximum and minimum value of matrix in matlab?

1. First open matlab and enter a = [12 35 24; 26 78 14; 16 19 2 1] to create an A matrix with 3 rows and 3 columns.

2. Then you need to enter max(max(a)) to find the maximum value of the A matrix.

3. Then you need to enter, and you can see that the maximum value of matrix A is 78.

4. Then you need to enter min(min(a)) to find the minimum value of the A matrix.

5. After pressing Enter, you can see that the minimum value of the matrix is 12.