Effacer les filtres
Effacer les filtres

how to concatenate n matrixs together to form a bigger matrix

1 vue (au cours des 30 derniers jours)
Abhishek sadasivan
Abhishek sadasivan le 13 Sep 2014
Hi..I have 1000 matrices ,A_1 to A_1000 of size 3*3 .I want to merge all then together (concatenate )vertically to form a bigger rectangular matrix of size 3000*3.. I know [A_1 A_2 . . . . A_1000] will do this .pls let me know instead of manual typing from A_1 to A_1000 it can be looped in some way or ..

Réponses (1)

Image Analyst
Image Analyst le 13 Sep 2014
How did you ever get in the unfortunate position of having 1000 variables all with different names ? Did you not heed the FAQ's advice against doing that: http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F If so, you'll have to use the hated eval() function.

Catégories

En savoir plus sur Logical 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