How can I copy a MATLAB figure to ms word while retaining figure labels?

조회 수: 2 (최근 30일)
I labelled the x-axis of the MATLAB figure as follows:
xlabel(['Ambient temperature, ',char([0xD835 0xDF0F]),''])
However, the unicode character (\tau) is missing in the copied figure. Please what should i do?
  댓글 수: 3
CAM
CAM 2023년 3월 20일
MS Word also has a Screen Clipping feature too.

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

답변 (1개)

Adam Danz
Adam Danz 2023년 3월 20일
편집: Adam Danz 2023년 3월 20일
copygraphics is a quick and easy way to copy a figure or axes to the clipboard so you can paste it into a document. For example, if you're copying the entire figure,
copygraphics(fig)
where fig is the figure handle. Then paste into word. I tested it with your xlabel and had no issues.
Also, here's a simplified alternative to your xlabel, though the tau character may be slightly different,
xlabel('Ambient temperature, \tau')
  댓글 수: 1
Abdulrahaman Lawal Suleiman
Abdulrahaman Lawal Suleiman 2023년 3월 22일
Thank you for your response Adam. I prefer this variant of the tau character. I tried saving the figure as a .png or .jpg type and then paste in ms word which worked.

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

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by