How can I extract data with respect to certain non numeric values
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
shellmcg
am 13 Apr. 2016
Kommentiert: shellmcg
am 18 Apr. 2016
I have a csv file, which have numeric and non numeric columns. e.g the first, second and fourth column has numbers and the third column has letters i.e C,S,CA. I have imported the file and sorted the third (non-numeric) column so all the C, CA and S values are listed together. How can I extract rows of data that are associated with 'CA'? Thanks
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 17 Apr. 2016
Use readtable() to read your data into a table. Then use ismember() to find out which rows have CA in them, then use that to filter the rows. If you don't understand, then attach your data (csv file).
4 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!