remove rows with empty variables within timetable
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Sehoon Chang
il 2 Set 2020
Risposto: Mohammad Sami
il 3 Set 2020
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/355396/image.png)
thanks :)
0 Commenti
Risposta accettata
Mohammad Sami
il 3 Set 2020
You can use the rmmissing function. It will remove all rows where any of the columns are missing.
b = rmmissing(a);
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Tables in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!