powered by
Function tests is any matrix element is above a minimum value. For those elements the function sets those values to the minimum value.
test_for_min(mat, min_mat)
A matrix.
A matrix the same size as mat with the minimum allowed value of that element.
A matrix
Other matrix_manipulation: diag_matlab, test_for_max, test_for_zeros
diag_matlab
test_for_max
test_for_zeros
# NOT RUN { test_for_min(cbind(2,3,4,5,6),cbind(4,4,4,4,4)) test_for_min(ones(6)*45,ones(6)*40) # }
Run the code above in your browser using DataLab