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

2 vues (au cours des 30 derniers jours)
Gopinath
Gopinath le 17 Juil 2012
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.

Réponses (3)

Miro
Miro le 17 Juil 2012
you can set the figure properties to screen size
  3 commentaires
Miro
Miro le 18 Juil 2012
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.
Gopinath
Gopinath le 18 Juil 2012
Thank u for the suggestion of saving it in png

Connectez-vous pour commenter.


Walter Roberson
Walter Roberson le 14 Sep 2015
Set the figure http://www.mathworks.com/help/matlab/ref/figure-properties.html PaperPositionMode to 'auto'

Allen Goldstein
Allen Goldstein le 21 Jan 2021
Modifié(e) : Allen Goldstein le 21 Jan 2021
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!

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by