Problem in copying figure in MATLAB 2014b

조회 수: 2 (최근 30일)
Yong-Cheol Kwon
Yong-Cheol Kwon 2014년 12월 18일
댓글: Prajwol Tamrakar 2020년 5월 29일
There is a problem in copying figure in MATLAB 2014b.
When I copy a figure to clipboard in metafile format, that figure is distorted when pasted.
For example, I have following figure.
After copying the figure in metafile format and pasting it, this figure becomes
Of course, this figure is not distorted when copied in bitmap format and pasted.
There wasn't such problem like this when I was using MATLAB2013a before. Is it a bug in MATLAB2014b? And how can I fix this problem?

답변 (4개)

Manuel Brose
Manuel Brose 2017년 5월 18일
편집: Manuel Brose 2017년 5월 18일
It happens also on my 2014b version. The first "copy figure" works just fine but after copying it again figures get distorted. I've found out, that it doesn't matter how it's saved, e.g., having it on clipboard or saving it directly as emf. It seems that MATLAB can't handle the copy figure procedure after some unknown circumstances. A simple workaround which helps at the moment: Restart MATLAB, run script and i can copy all figures multiple times without having any distortions.

Sudharsana Iyengar
Sudharsana Iyengar 2014년 12월 18일
have you tried this
eval(['print -dmeta nameofyourfile.emf']);
  댓글 수: 1
Yong-Cheol Kwon
Yong-Cheol Kwon 2014년 12월 18일
Thank you for your answer.
I tried that command.
But what I got is still distorted figure like

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


Ehsan Asadi
Ehsan Asadi 2015년 2월 18일
try this:
in the figure, go to edit>copy option> select metfile
it worked for me.
now I can easily use copy option with high quality.
  댓글 수: 1
Prajwol Tamrakar
Prajwol Tamrakar 2020년 5월 29일
Yes. It worked. It was so simple. :). Thanks a lot.

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


Henrik Åsheim
Henrik Åsheim 2015년 2월 26일
I have found the metafile option works fine for simpler single graph things, but troubles with some subplot I have.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by