How to concatenate these subplots on one image in matlab?

2 ビュー (過去 30 日間)
gehan mohamed
gehan mohamed 2019 年 11 月 3 日
編集済み: gehan mohamed 2019 年 11 月 3 日
V1img = wcodemat(V1,255,'mat',1);
H1img = wcodemat(H1,255,'mat',1);
D1img = wcodemat(D1,255,'mat',1);
A1img = wcodemat(A1,255,'mat',1);
subplot(4,1,1)
imagesc(A1img)
colormap pink(255)
subplot(4,1,2)
imagesc(H1img)
subplot(4,1,3)
imagesc(V1img)
subplot(4,1,4)
imagesc(D1img)
1.png

採用された回答

Turlough Hughes
Turlough Hughes 2019 年 11 月 3 日
Hi Gehan,
Are the images all the same size and class? If so you can just write
concat_img=[V1img;H1img;D1img;A1img];
imshow(concat_img)
if not, write the following into the command line
whos V1img H1img D1img A1img
and comment the results/include the images as an attachment.
  1 件のコメント
gehan mohamed
gehan mohamed 2019 年 11 月 3 日
編集済み: gehan mohamed 2019 年 11 月 3 日
Thank you so much
V1img = wcodemat(V1,255,'mat',1);
H1img = wcodemat(H1,255,'mat',1);
D1img = wcodemat(D1,255,'mat',1);
A1img = wcodemat(A1,255,'mat',1);
subplot(4,1,1)
imagesc(A1img)
colormap pink(255)
subplot(4,1,2)
imagesc(H1img)
subplot(4,1,3)
imagesc(V1img)
subplot(4,1,4)
imagesc(D1img)
concat_img=[A1img;H1img;V1img;D1img];
imagesc(concat_img)

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by