フィルターのクリア

Conditional plotting for a dataset?

13 ビュー (過去 30 日間)
farkab95
farkab95 2017 年 11 月 13 日
コメント済み: Walter Roberson 2021 年 3 月 2 日
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 2021 年 3 月 2 日
temp = x;
temp(mod(temp, 1)~=0) = nan;
plot(temp, y)

サインインしてコメントする。

採用された回答

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by