フィルターのクリア

Extracting value from array and determine it position

1 回表示 (過去 30 日間)
Amril Luqman
Amril Luqman 2021 年 5 月 7 日
コメント済み: Amril Luqman 2021 年 5 月 7 日
suppose i have this table.
How do i determine how many days the temp in lake A was above 60 and on what day its happen? I use this commands but it doesnt satisfy my question.
temp_A=[55 62 60 61 63 65 62 59 58 56];
x=find(temp_A>60)
x = 1×5
2 4 5 6 7
position=temp_A(x)
position = 1×5
62 61 63 65 62
  4 件のコメント
Matt J
Matt J 2021 年 5 月 7 日
I edited your post to show the results of running your computation. It seems to give exactly the results you say you expect. Are you seeing something different?
Amril Luqman
Amril Luqman 2021 年 5 月 7 日
Ohhh i see, i need to separate the commands. Thanks for correcting me!!

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

回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by