필터 지우기
필터 지우기

data table delete rows after time

조회 수: 1 (최근 30일)
Badr Sahib
Badr Sahib 2017년 4월 7일
댓글: Peter Perkins 2017년 4월 12일
I have a largeData as table (imported from oracle database). The first column is timestamp (date and time). How can I delete certain lines after time (timestamp). I want to delete the night data, between 22h and 5h. Or can I change what in SQL command? ...FROM "LOGDATEN".DATENLOGGER_SHA WHERE DATUM >= to_date(''2016-07-01'',''yyyy-MM-dd'') AND DATUM < to_date(''2016-08-01'',''yyyy-MM-dd'')order by datum asc']) thanks for your help
  댓글 수: 1
Peter Perkins
Peter Perkins 2017년 4월 12일
Badr, you're going to need to provide a short example so that people can see what you mean by "table" and "timestamp (date and time)".

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

답변 (1개)

Sid Jhaveri
Sid Jhaveri 2017년 4월 10일
If you would like to do this processing in MATLAB after you have imported the data as a table, you can use " isbetween " function for creating a logical array which states which datetime entry meets the criteria. You can then filter your table by using this logical array.

카테고리

Help CenterFile Exchange에서 Data Type Identification에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by