Convert tables to arrays in a for loop
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nikolas Spiliopoulos
le 16 Oct 2018
Commenté : Nikolas Spiliopoulos
le 19 Oct 2018
hi there,
I have some tables named (data_1, data_2 ,data_3, data_4,data_5)
is it possible to convert them to arrays by using a for loop?
(Instead of doing it manually for each table separately)
thanks
Nikolas
0 commentaires
Réponse acceptée
Stephen23
le 16 Oct 2018
C = {data_1, data_2 ,data_3, data_4,data_5};
D = cellfun(@table2array,C,'uni',0)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Tables 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!