How can concatenate matrices with dimension expansion.
조회 수: 1 (최근 30일)
이전 댓글 표시
img1 = imread('0.png');
img2 = imread('1.png');
size(img1); % (25, 25)
size(img2); % (25, 25)
I want to make 'img' with its dimension (2, 25, 25)
How can I do it?
댓글 수: 0
답변 (2개)
David Hill
2021년 4월 19일
Why not 25x25x2?
img(:,:,1) = imread('0.png');
img(:,:,2) = imread('1.png');
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!