How can i get corresponding value in a table?

4 ビュー (過去 30 日間)
Om Suryawanshi
Om Suryawanshi 2020 年 3 月 21 日
回答済み: Samatha Aleti 2020 年 3 月 24 日
for example maximum of the table is obtained but need to find at what time is it obtained
  2 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 3 月 21 日
Can you share an example of your table?
madhan ravi
madhan ravi 2020 年 3 月 21 日
are you talking about a timetable(...) ? share the data as .mat file

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

回答 (1 件)

Samatha Aleti
Samatha Aleti 2020 年 3 月 24 日
Hi,
As per my understanding, you are trying to find the corresponding “time” value of a maximum value in the timetable. You can do this by finding the index of maximum.Here is a sample code:
indoors = readtimetable('indoors.csv');
[maxValue maxIndex] = max(indoors.Humidity)
maxT = indoors.Time(maxIndex)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by