Effacer les filtres
Effacer les filtres

Transfer All Cell Elements to a Single Vector Without For Loop

1 vue (au cours des 30 derniers jours)
czeslaw
czeslaw le 26 Avr 2018
Hi all,
Supposed I have
a=[{[2 3]};{[3 5 4]}]
What I want is to transfer all members in "a" to vector b
b=[2 3 3 5 4]
How can I do that without "for loop" ?
I write nested loop code that can do that, but the computing time is to slow for hundreds thousands of data.
Please help. Thank you.

Réponse acceptée

Ameer Hamza
Ameer Hamza le 27 Avr 2018
b = cell2mat(a)

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by