MATLAB: Plotting information that is above a certain threshold

thresholding plotting

If I have a dataset and I want to threshold it I use
thresh = find(dataset > 100)
however, if I want to plot 'thresh' how would I go about this as I know that the find function just gives the indicies at which these values occur.

Best Answer

If you want to plot the data above threshold, you can use
dataset_new = dataset(find(dataset > 100));
plot(dataset_new)