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 CenterFile Exchange에서 Images에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by