Question: Create a function that takes a generic matrix, x, and finds the smallest value in the matrix.The function must work for matrices of any size and dimension.
1 view (last 30 days)
I had a similar question to this eariler in which you were told to take inputs z and x from a function and create a matrix of dimension x or z, whichever is larger.
i was told to do something like this:
x = -100:100;
z = -100:100;
myMatrix = randi(100, max(x,z));
do i do the same here but replace the max with min?
thanks for the help.