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,
0 个评论
采纳的回答
Guillaume
2017-2-10
filteredcellarray = yourcellarray(strcmp(yourcellarray(:, 9), 'Ozone'), :)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!