How to enable the Legend of the Simulink Scope??

47 Ansichten (letzte 30 Tage)
Nishant Mankame
Nishant Mankame am 6 Mai 2014
For my assignment report I wanted to save my scope reuslt in eps format. Upon searching on internet, I found a code which I thought would enable me to edit my scope display.
Code is as follow.
shh = get(0,'ShowHiddenHandles'); set(0,'ShowHiddenHandles','On'); set(gcf,'menubar','figure'); set(gcf,'CloseRequestFcn','closereq'); set(gcf,'DefaultLineClipping','Off'); set(0,'ShowHiddenHandles',shh);
Upon entering this code, now I have lost my Legend from scope. No matter what I try, I cant get it back. The code above must have disabled it. So please help me out if you know the correct code to enable it back.

Antworten (1)

CHANDRA BABU GUTTIKONDA
CHANDRA BABU GUTTIKONDA am 26 Sep. 2025
  • Open the Scope, then run:fig = get_param(gcb,'ScopeFigureHandle'); % get scope’s figure handle
print(fig,'-depsc','scope_output.eps'); % export to EPS
  • Your scope plot is now saved as scope_output.eps in the current MATLAB folder.

Community Treasure Hunt

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

Start Hunting!

Translated by