Create submatrix from large array based on string in column

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,

 Respuesta aceptada

filteredcellarray = yourcellarray(strcmp(yourcellarray(:, 9), 'Ozone'), :)

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 10 de Feb. de 2017

Respondida:

el 10 de Feb. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by