Display multiple .ps files on a single page
조회 수: 1 (최근 30일)
이전 댓글 표시
This is a spinoff of another question, found here: https://au.mathworks.com/matlabcentral/answers/438024-combine-images-to-display-on-single-page
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.
댓글 수: 0
답변 (1개)
Walter Roberson
2019년 1월 7일
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!