find the location of min element value and minvalue in the generated result
Title
Question
Please tell me how to find out the minimum value of the element in the matrix and the location of that value in the matrix
Scilab Matrix-Operations 15-16 min 50-60 sec
Answers:
If you want to calculate minimum value of mat A and its index then use,
[min_val,index]=min(A)
To find the minimum element in a matrix A, type y = min(A)
To find the indices of y, type [i1, i2] = find(A ==y)
Login to add comment