フィルターのクリア

Help with matrix concatenation!

1 回表示 (過去 30 日間)
Manu Manu
Manu Manu 2014 年 3 月 15 日
回答済み: Image Analyst 2014 年 3 月 15 日
Hello! I need some help creating a program. I need to write a program who recieves as arguments the matrix(same order): L,U,Q and R,Q are invertible matrix. The program returns the resultated matrix by vertically concatenation of 2 matrixes. The first one it's built by concatenation-horizontally of the matrix L,U,Q and R, and the second one by concatenation-horizontally of matrix L * U , U + R , L(transpose)and Q(at -1) +R . The program returns vid matrix if the conditions are not respected.
This totally beats my 1 week(training) in MatLab!
Thank you very much!

回答 (1 件)

Image Analyst
Image Analyst 2014 年 3 月 15 日
To concatenate horizontally:
wideMatrix = [A,B,C,D]; % All have same # of rows.
To concatenate vertically:
tallMatrix = [A;B;C;D]; % All have same # of columns.

カテゴリ

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