Assigning the Nth element of Cell Array to another Array
Afficher commentaires plus anciens
Hello, I have an cell array with 1000 rows and inside of this rows I have a 3 word. I am taking the 2nd element of this rows and want to assign these values to another array. In other words array_temp(i,1) = array(i,2). I want to do it with for loop. How can I do it?
1 commentaire
What does this mean: "inside of this rows I have a 3 word"?
Prefer to post some code, which reproduces a small set of test data.
What's wrong with this:
array_temp = array(:,2);
Why do you need a loop?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!