How to extract rows from a table using a loop to search for specific column values, and create a new table with extracted rows
Afficher commentaires plus anciens
I have an excel document containing information that details flight arrival and departure information for a full year. What I would like to do is find a row based on the information stored in two seperate columns, extract this row and create a new table containing this row.
The columns are column 1, and column 7; column 1 is the arrival/departure indicator, and column 7 is the airport name. Both are text based. I wish to first extract the Arrival row, and then the corresponding Departure row. The column 7 text will be the same for both rows. The loop would allow for the journey to be identified and extracted every time it takes place for the entire year.
I have imported the excel file using the 'readtable' function. However, I have tried and failed a few methods I have found on the forum to complete the next step but have had no luck. Any help is appreciated.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Spreadsheets dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!