How can i use imshow to read matrix??
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hey guys. I have a 5x5 matrix and this matrix concludes 25 different image(jpg).All images are 64x64.
For explain A(1,1)=image1.jpg A(1,2)=image2.jpg...... A(5,5)=image25.jpg.
But when i want to use imshow(A) this error comes: imshow: IM must be an image or the FILENAME of an image
I must use imshow becaouse this is my hmwork.
What did i wrong? Help me please.
0 Kommentare
Antworten (1)
JESUS DAVID ARIZA ROYETH
am 2 Dez. 2019
solution:
A=reshape(split(num2str(1:25,'image%i.jpg ')),5,5)';
figure
imshow(cell2mat(cellfun(@imread,A,'uni',false)))
0 Kommentare
Siehe auch
Kategorien
Mehr zu Display Image finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!