How do I select particular data from excel file

조회 수: 1 (최근 30일)
Debayan Mandal
Debayan Mandal 2018년 12월 4일
댓글: Debayan Mandal 2018년 12월 4일
I have an excel file with 2 colum title namely date and time , value. I want each date 14:30 value only. Is it possible to do so?
thanks in advance

채택된 답변

Kevin Chng
Kevin Chng 2018년 12월 4일
편집: Kevin Chng 2018년 12월 4일
Yes. Try
a = readtable('test.xlsx');
b = a((hour(a.Date_Time)==14 & minute(a.Date_Time)==30),:)
Use logic to get the index of a when hour is 14 and minutes is 30.
Accept my answer if it is working for you.
  댓글 수: 2
madhan ravi
madhan ravi 2018년 12월 4일
+1 nice
Debayan Mandal
Debayan Mandal 2018년 12월 4일
thank u it works perfectly.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by