필터 지우기
필터 지우기

I want to attach two images.

조회 수: 1 (최근 30일)
niniki
niniki 2022년 2월 25일
댓글: niniki 2022년 2월 25일
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.

채택된 답변

DGM
DGM 2022년 2월 25일
편집: DGM 2022년 2월 25일
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
niniki
niniki 2022년 2월 25일
Thank you. You are a genius.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by