필터 지우기
필터 지우기

How do I manipulate the graph properties of my Scope plot?

조회 수: 10 (최근 30일)
I want to manipulate my Scope properties, as I can with any MATLAB figure.
For example, I would like to know how to:
- Change the background/foreground color
- Change the line color
- Add text/legend
- Print the Scope trace from Simulink
- Use Data Cursor Mode

채택된 답변

MathWorks Support Team
MathWorks Support Team 2011년 11월 15일
This enhancement has been incorporated in Release 2011b (R2011b). For previous product releases, read below for any possible workarounds:
You can export your data to MATLAB and use the SIMPLOT command to plot your data from MATLAB. This will generate a MATLAB figure that will allow you to change the figure properties. For more information, type 'help simplot' at the MATLAB command window prompt.
If you need to manipulate the Scope window for simulation, you can use the following snippet of code:
shh = get(0,'ShowHiddenHandles');
set(0,'ShowHiddenHandles','On');
set(gcf,'menubar','figure');
set(gcf,'CloseRequestFcn','closereq');
set(gcf,'DefaultLineClipping','Off');
set(0,'ShowHiddenHandles',shh);
NOTE: Simulink does not support manipulating graphics properties using the Scope or Signal Viewer handle. When manipulating any graphics properties, do not change or alter the structure of the scope. For example, you should not delete any of the graphical objects (text, axes, menus, etc) in the scope as this could lead to unstable behavior.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by