Display multiple .ps files on a single page

4 Ansichten (letzte 30 Tage)
Cg Gc
Cg Gc am 7 Jan. 2019
Beantwortet: Walter Roberson am 7 Jan. 2019
I need to be able to display multiple .ps images onto a single page. I have a code that works to show different sized images, but there is an annoying border that I can't get rid of.
figure
subplot(2,2,1);
imshow(img1,'Border','tight');
subplot(2,2,2);
imshow(img2,'Border','tight');
subplot(2,2,3);
imshow(img3,'Border','tight');
subplot(2,2,4);
imshow(img4,'Border','tight');
This code works, but requires me to reformat my .ps images into other image formats, such as .png, or .jpg. The easiest way to do this was online, but it is taking a while. Is there a way to display .ps images with or without reformatting them? I have looked around and I haven't found an answer except to do so online or in Ghostscript, both of which only do one at a time. I have several hundred of these annoying images to display.
Please help.

Antworten (1)

Walter Roberson
Walter Roberson am 7 Jan. 2019
No, MATLAB cannot display postscript directly . postscript is a complete programming language that often draws the results through code rather than using pixels . postscript is not an image file format.
If you have a ghostscript executable then you can open multiple operating system shell each invoking ghostscript and process multiple files at aa time that way.

Kategorien

Mehr zu Convert Image Type 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!

Translated by