I am trying to output multiple images to one pdf page, anyone have an idea of how to do it?

1 回表示 (過去 30 日間)
Emmanuel Tetteh
Emmanuel Tetteh 2018 年 6 月 13 日
編集済み: MUHAMMED IRFAN 2018 年 6 月 14 日
set(figure(4),'Units','inches'); image_size=get(figure(4), ) set(figure(4),'PaperSize',[8.5 11]); screenposition = get(figure(4),'Position'); set(figure(4),'PaperPosition',[0 0 screenposition(3:4)]); set(figure(4),'PaperPositionMode','Manual') print -dpdf -painters epsFig

回答 (1 件)

MUHAMMED IRFAN
MUHAMMED IRFAN 2018 年 6 月 14 日
編集済み: MUHAMMED IRFAN 2018 年 6 月 14 日
Hello,
Why dont you create a subplot of your images and then sent that subplot to the pdf ??
The code I tried goes like this ...
I1 = imread(<my first image>);
I2 = imread(<my second image>);
figID = figure;
subplot(211);imshow(I1);
subplot(212);imshow(I2);
print(figID, '-dpdf', sprintf('myPDF.pdf'));

カテゴリ

Help Center および File ExchangeSubplots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by