To store many double arrays in a double array
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Khaing Zin Htwe
le 20 Avr 2016
Commenté : Khaing Zin Htwe
le 22 Avr 2016
Dear all, Could you please help me how to store many double arrays in a single array? I have many double arrays with dimensions 1x512 .I want to store these array in a single array.How can I do it,please? Thanks all.
0 commentaires
Réponse acceptée
Jan
le 21 Avr 2016
a = rand(1, 512);
b = rand(1, 512);
c = rand(1, 512);
M = [a; b; c]
Having "many" variables sounds like a bad idea. Note that the matrix is more practical.
0 commentaires
Plus de réponses (1)
Azzi Abdelmalek
le 20 Avr 2016
Modifié(e) : Azzi Abdelmalek
le 20 Avr 2016
a=[1 2 3]
b=[4 5 6]
c=[a b]
5 commentaires
Voir également
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!