Create submatrix from large array based on string in column

2 vues (au cours des 30 derniers jours)
MelMo
MelMo le 10 Fév 2017
Hello,
I have a very large data set imported from a .csv file that contains both numbers and strings. One of the columns (column 9) contains different pollutant names. I ultimately want to make a file that contains all the rows related to ozone. I have done this with numbers from excel documents, but the same thought process doesn't seem to be working for me here.
Any thoughts?
Thanks,

Réponse acceptée

Guillaume
Guillaume le 10 Fév 2017
filteredcellarray = yourcellarray(strcmp(yourcellarray(:, 9), 'Ozone'), :)

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by