How to enable the Legend of the Simulink Scope??

40 visualizaciones (últimos 30 días)
Nishant Mankame
Nishant Mankame el 6 de Mayo de 2014
Respondida: CHANDRA BABU GUTTIKONDA el 26 de Sept. de 2025
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.

Respuestas (1)

CHANDRA BABU GUTTIKONDA
CHANDRA BABU GUTTIKONDA el 26 de Sept. de 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.

Categorías

Más información sobre Legend en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by