How to combine two matrices (images)

3 Ansichten (letzte 30 Tage)
Meghan Holland
Meghan Holland am 23 Nov. 2020
Beantwortet: Mario Malic am 23 Nov. 2020
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?

Antworten (1)

Mario Malic
Mario Malic am 23 Nov. 2020
Hello,
You can use
C = cat(1, B, A);

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by