Create submatrix from large array based on string in column

2 次查看(过去 30 天)
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,

采纳的回答

Guillaume
Guillaume 2017-2-10
filteredcellarray = yourcellarray(strcmp(yourcellarray(:, 9), 'Ozone'), :)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by