Selecting and Manipulating Specific Elements from Cell Array
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jonathan Pinko
le 27 Juil 2020
Commenté : Jonathan Pinko
le 27 Juil 2020
A shortened version of my cell array:
{apples} {[1]}
{bananas} {[3]}
{apples} {[10]}
{apples} {[9]}
{bananas} {[7]}
I would like to write a code that creates a cell array that only consists of values from the second column that are on the same row as apples, i.e., this:
{[1]}
{[10]}
{[9]}
How would I do this?
Thanks,
Jonathan
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!