exportgraphics r2020a issue

조회 수: 9 (최근 30일)
MS
MS 2020년 5월 29일
편집: MS 2020년 6월 2일
I am using exportgraphics command to export hihg quality images.
exportgraphics(gcf,[filenames(1:end-4),'.tiff'], 'Resolution', 300);
Bur, exported image output as attached here. for some reason, part of the screen is saved as black. does anybody know the solution? Kinldy help.
if i use
saveas(gcf,filenames(1:end-4),'tiff');
  댓글 수: 2
Richard Quist
Richard Quist 2020년 6월 1일
편집: Richard Quist 2020년 6월 1일
MS,
That is certainly not the expected behavior. Please report this to MathWorks Technical Support so this can be looked into. It will help if you can provide reproduction steps and information about how you are running MATLAB (startup options, platform/OS, machine configuration, etc). Since you mentioned that it was working properly until a few days ago, it might help if you are able to identify what might have changed... did you update your hardware or software? Did you change machines? ...
Thanks
MS
MS 2020년 6월 1일
Hi richard,
Thanks for the suggestion. I have made a request to MATlab team. I have not made any changes. I will check it once again

댓글을 달려면 로그인하십시오.

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 5월 29일
편집: Ameer Hamza 2020년 5월 29일
I didn't face this problem in R2020a update 2, however, I remember observing something like this (not exactly sure if it was exportgraphics). Have you installed update 2? Alternatively, I suggest using this excellent package by Yair on FEX: https://www.mathworks.com/matlabcentral/fileexchange/23629-export_fig. I have found that this usually gives a better output as compared to the built-in function from MATLAB. Download this and add it to MATLAB's path and run it like this
export_fig(gcf,[filenames(1:end-4),'.tiff'], '-r300');
  댓글 수: 3
Ameer Hamza
Ameer Hamza 2020년 5월 29일
Your exportgraphics command is correct. But have you installed update 2 for R2020a?
MS
MS 2020년 5월 29일
Thanks for sugeesting export_fig command. I have not upgraded 2 yet. I will update it soon. Few days ago, the same command was exporting the images correct wiht the current version. Suddenly, it is gving the black images for some reason. I will let you know the progress after the update.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by