How to gte a whole column from a cell
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Now, i have a table looks like this, how can i get the 4th column? Like [Asia; Europe;Europe;Africa;Australia;and so on]
In addition, i still want to write some codes to identify them. For example, i want to know if it is 'Asia' or 'Europe' or not, i want to get a 245x1 matrix and the elements
should be logical number 1 or 0, but i don't know how to do that, please help me! Thanks.
2 Kommentare
Akzeptierte Antwort
madhan ravi
am 3 Apr. 2020
Wanted1 = fieldarray(:,4);
Wanted2 = ismember(fieldarray,{'Asia','Europe');
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Language Fundamentals 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!