フィルターのクリア

How do i find only the specific date of the maximum temperature?

1 回表示 (過去 30 日間)
suleiman abdullahi
suleiman abdullahi 2019 年 8 月 18 日
コメント済み: darova 2019 年 8 月 18 日
Hello,
I have the the data below in which i already the know Maximum the maximum temperature in the TMAX column to be 44.96 by using (max(CVG.TMAX)). Now i want to display the date of this temperature. How do i do that knowing the data is too large and i want to find the date of the maximu temperature(year,month,day)
Capture3.JPG
  1 件のコメント
darova
darova 2019 年 8 月 18 日
max can also return index
[M,I] = max(a);
Read more in help: max

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

採用された回答

suleiman abdullahi
suleiman abdullahi 2019 年 8 月 18 日
maxim = find(CVG.TMAX == max(CVG.TMAX)); % CVG is the name of the data, TMAX is the column of the maximum temp
CVG(maxim,2:10) % i want the 2nd to the 10th column in which the maximum temperature appears displayed
this code displays this answer below, i think i got the answer i was looking for. Thanks
Capture3.JPG

その他の回答 (1 件)

darova
darova 2019 年 8 月 18 日
max can also return index
[M,I] = max(a);
Read more in help: max
suleiman abdullahi, I want you to accept my answer.
  2 件のコメント
suleiman abdullahi
suleiman abdullahi 2019 年 8 月 18 日
i appreciate your effort but the output of your answer is this which is not what i wanted.
Capture3.JPG
darova
darova 2019 年 8 月 18 日
please?

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

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by