Plot two variables only when a third one has certain value

Hi
I have 3 variables, Time, Temperature and FC. FC is either 1 or 0. All 3 variables are of the same length.
I want to plot temperature over time but ONLY when FC = 1. Namely I want the Temperature profile over time when FC = 1 and NOT 0.
How can I do it?

 採用された回答

KSSV
KSSV 2019 年 2 月 28 日

0 投票

plot(Time(FC==1),Temperature(FC==1))

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

質問済み:

2019 年 2 月 28 日

コメント済み:

2019 年 2 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by