djfish's studio

11/26/2009

Simulink-Scope modify

The ability to interact with Scope figure properties is not available because the handle of the Scope figure is not turned on. To turn the handle of your Scope figure on, and show the menus, type the following at the MATLAB command prompt (after opening the Scope figure):

shh = get(0,'ShowHiddenHandles');
set(0,'ShowHiddenHandles','On')
set(gcf,'menubar','figure')
set(gcf,'CloseRequestFcn','closereq')
set(gcf,'DefaultLineClipping','Off')
set(0,'ShowHiddenHandles',shh)

This will allow you to manipulate your Scope figure just like any other MATLAB figure, allowing you to make changes such as:
- Background/foreground color
- Line color
- Add text or a legend
- Add a print icon
from:http://www.mathworks.co.uk/matlabcentral/newsreader/view_thread/239142

No comments:

Post a Comment