Conditional plotting for a dataset?

8 次查看(过去 30 天)
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.
  5 个评论
Navonil Sarkar
Navonil Sarkar 2021-3-2
编辑:Navonil Sarkar 2021-3-2
I want to plot x (independent variable) vs y only for integral values of x in a discrete function! How can this be done?

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2017-11-13
temp = concentration;
temp(temp <= 0.07) = nan;
plot(time, temp)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by