How can concatenate matrices with dimension expansion.
1 view (last 30 days)
Show older comments
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 Comments
Answers (2)
David Hill
on 19 Apr 2021
Why not 25x25x2?
img(:,:,1) = imread('0.png');
img(:,:,2) = imread('1.png');
0 Comments
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!