setting 'match figure screen size' for copy options to a figure throgh command prompt

How to set the 'match figure screen size' in copy figure options through command prompt. We now set it by clicking from the drop down menu. I want to set this in an .m file giving it as command line.
I need to copy and hold the property for the copy option for pasting it to a ppt or doc, for that 'match figure screen size' in edit -> copyotions->'match figure screen size' check box should be ticked, how to activated and deactivate that in command promp.

답변 (3개)

Miro
Miro 2012년 7월 17일
you can set the figure properties to screen size

댓글 수: 3

This sets the figure position and other properties in .fig file, but i need to copy and hold the property for the copy option for pasting it to a ppt or doc, for that 'match figure screen size' in edit -> copyotions->'match figure screen size' check box should be ticked, how to activated and deactivate that in command promp.
i think i dont understand your question. if you want to insert your fig into a ppt simply save it as png. The final resolution depends on the size of the figure window.
Thank u for the suggestion of saving it in png

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

Allen Goldstein
Allen Goldstein 2021년 1월 21일
편집: Allen Goldstein 2021년 1월 21일
You need to set the Resoluton in the factorystyle to 0.
style = hgexport('factorystyle'); % get the style
style.Resolution = 0; % Resolution = 0 means use the screen resolution
hgexport(gcf,'-clipboard',style);
And MATHWORKS: you need to document hgexport!

카테고리

도움말 센터File Exchange에서 Scripts에 대해 자세히 알아보기

제품

질문:

2012년 7월 17일

편집:

2021년 1월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by