Hi,
I have a 3000 x 3000 matrix and want to remove all elements inside the matrix that are less than a specific value, .5 for example.
How would I go about this?
Here's what I have so far but it doesn't seem to work:
function y = highestValues(a,b)% a is the matrix
% b is the threshold value
[sortedValues,~] = sort(a,1,'descend');exclude = sortedValues < b;sortedValues(exclude) = [];highestValue = sortedValues;clearvars n sortedValues;y = highestValue;
Thank you!
Best Answer