Effacer les filtres
Effacer les filtres

I want to attach two images.

1 vue (au cours des 30 derniers jours)
niniki
niniki le 25 Fév 2022
Commenté : niniki le 25 Fév 2022
I want to post an A.raw video and a B.raw video.
It consists of A.raw, B.raw => 3000x15000 matrix.
What I want to do is...
I think we can put the B matrix after the A matrix.
I want to know how to attach two matrices.

Réponse acceptée

DGM
DGM le 25 Fév 2022
Modifié(e) : DGM le 25 Fév 2022
If the adjacent dimensions of the arrays match, they can be concatenated.
A = imread('cameraman.tif'); % a picture
B = imcomplement(A); % another picture
C = [A B]; % concatenate horizontally
imshow(C)
D = [A; B]; % concatenate vertically
imshow(D)
See also cat(), vertcat(), horzcat()
  1 commentaire
niniki
niniki le 25 Fév 2022
Thank you. You are a genius.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by