How can i get corresponding value in a table?

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일

0 개 추천

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)

카테고리

도움말 센터File Exchange에서 Tables에 대해 자세히 알아보기

태그

질문:

2020년 3월 21일

답변:

2020년 3월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by