![]() |
VOOZH | about |
The matrix.min() method find the minimum value in a matrix.
matrix.min()
Return: Returns the minimum value from the matrix.
Example 1: In this example, we create a 2×2 matrix and use matrix.min() to get the smallest value.
1
Explanation:
Example 2: Here, we create a 3×3 matrix and use matrix.min() to find the smallest number.
-9
Explanation: