concatenate multidimentional tables

3 ビュー (過去 30 日間)
Mary Kodogianni
Mary Kodogianni 2011 年 1 月 29 日
Hello everybody, I 'm working my project,and i must add,concatenate 2dimentional arrays. Does anybody know an effective algorithm to do this? Thanks in advantage..

採用された回答

Jiro Doke
Jiro Doke 2011 年 1 月 29 日
Since you aren't very descriptive with your question, I would simply suggest reading up on Matrix Concatenation from the documentation:

その他の回答 (1 件)

Jan
Jan 2011 年 1 月 29 日
A surprising question. If you want to concatenate two matrices horizontally:
C = [A, B];
And vertically:
C = [A; B];
Perhaps you have a more complicated problem to solve?! Are you talking of a large cell vektor containing a lot of matrices and suffer from CAT, which fails to use an efficient pre-allocation method?

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by