Export figure to Microsoft Outlook

조회 수: 4 (최근 30일)
K E
K E 2011년 11월 22일
Seeking a good way to email plots to my coworkers via Outlook. The following are not satisfactory: 1) From Matlab figure window, choose Edit > Copy Figure then paste within Outlook. Quality is poor. 2) Quality is better with Matlab's print utility (png, tif) but figure aspect ratio is not preserved. 3) Aspect ratio is preserved with the program http://www.mathworks.com/matlabcentral/fileexchange/727-exportfig/content/exportfig.m but inserting the figure into Outlook is cumbersome (Insert > Picture then hunt for figure file).
The ideal solution would produce a high-quality figure with correct aspect ratio by (a) opening a new Outlook message with the figure embedded in the message body, or (b) better copying to the clipboard. Suggestions?
[Can't figure out how to insert a line break, sorry]
  댓글 수: 2
Daniel Shub
Daniel Shub 2011년 11월 23일
What do you mean by the quality is poor with the Copy Figure option? What type of figure are you dealing with? What is the figure renderer?
KAE
KAE 2011년 11월 24일
The figure looks very pixelated once it is copied to Outlook. This is true for lines and text, and for all options that are in Copy > Figure (bitmap, optimized for PowerPoint, etc).

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

채택된 답변

Oliver Woodford
Oliver Woodford 2011년 11월 23일
This code will copy a figure to the clipboard as an image:
imclipboard('copy', export_fig());
Both imclipboard and export_fig can be found on the file exchange.
  댓글 수: 5
owr
owr 2011년 11월 29일
This is great, you just made my life easier as well. I put this function call in a toolbar shortcut preceded by "set(gcf,'Color',[1 1 1])". A white figure background looks nice in Outlook.
Thank you!
K E
K E 2011년 11월 30일
Here is an explanation of how to make a toolbar shortcut, since I didn't realize it was possible before the prior comment,
http://blogs.mathworks.com/desktop/2007/03/29/shortcuts-for-commonly-used-code/

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by