- #1
therash09
- 12
- 0
I have a problem regarding concatination of multiple matrices in MATLAB. For finite number of matrices there exists a command called cat or we may even put the matrices directly in a matrix representation format to get the desired concatenation.
Like, for A and B to form a matrix C in row-wise concatenation, we may simply write it as C=[A B].
However it becomes extremely tedious when the number of matrices grows. Say I have 100 matrices of n*n dimensions that are to be concatinated in MATLAB. For this I need to design a loop using which this may be carried out in one command.
I have not been able to successfully implement this part. Even the slightest of hints will be appreciated. Please help...
Like, for A and B to form a matrix C in row-wise concatenation, we may simply write it as C=[A B].
However it becomes extremely tedious when the number of matrices grows. Say I have 100 matrices of n*n dimensions that are to be concatinated in MATLAB. For this I need to design a loop using which this may be carried out in one command.
I have not been able to successfully implement this part. Even the slightest of hints will be appreciated. Please help...