remove rows with empty variables within timetable

조회 수: 6 (최근 30일)
Sehoon Chang
Sehoon Chang 2020년 9월 2일
답변: Mohammad Sami 2020년 9월 3일
Hi all
I have a table with numerous variables that are empty/not recorded at certain point of time (mostly front and rear row, due to different measurement period or simply missing).
How can i just keep the central part, in which all the measurement of all variables are present, and remove the front and rear row in which even a single measurement is missing?
Below is an examplary timetable to explain what i intend to do.
thanks :)

채택된 답변

Mohammad Sami
Mohammad Sami 2020년 9월 3일
You can use the rmmissing function. It will remove all rows where any of the columns are missing.
b = rmmissing(a);

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by