MATLAB: Conditional plotting for a dataset

air pollutionconditional plottingif statementplotplottingtime series

I would like to make a plot of data where the date is on the x-axis and air concentrations values are in the y-axis. But, I only want to plot the air concentrations that are greater than 0.07. How would I do this?
Thank you.

Best Answer

temp = concentration;
temp(temp <= 0.07) = nan;
plot(time, temp)