How to conbine the array inside the structure?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
tabw
le 13 Août 2014
Réponse apportée : Azzi Abdelmalek
le 13 Août 2014
For example,
1X10 Struct
Structure(1)=1X5 array
Structure(2)=1X10 array
Is there a way to combine it into 1X15 array?
THanks
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 13 Août 2014
struct1=struct('f1',num2cell(1:10))
struct2=struct('f2',num2cell(1:5))
new_struct=struct('new_f',num2cell([struct1.f1 struct2.f2 ]))
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Structures 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!