How to combine two matrices (images)

3 ビュー (過去 30 日間)
Meghan Holland
Meghan Holland 2020 年 11 月 23 日
回答済み: Mario Malic 2020 年 11 月 23 日
Hello. Need help combining two matrices. Both are images (one is A = 330x201 and the other is B = 150x201). I need to put B to the left of A. I've been finding resources on how to combine matrices of the same size, but nothing about different sizes (in my case, different widths). How do I do this?

回答 (1 件)

Mario Malic
Mario Malic 2020 年 11 月 23 日
Hello,
You can use
C = cat(1, B, A);

カテゴリ

Help Center および File ExchangeImages についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by