Different dimension matrix addition
2 ビュー (過去 30 日間)
古いコメントを表示
I have a 2×2 matrix and i want to add it to a 4×4 matrix. How shall i proceed to do this?
2 件のコメント
採用された回答
KSSV
2022 年 7 月 18 日
Is this what you want?
A = rand(2) ;
B = rand(4) ;
iwant = repmat(A,2,2)+B
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!