How to enable the Legend of the Simulink Scope??

43 ビュー (過去 30 日間)
Nishant Mankame
Nishant Mankame 2014 年 5 月 6 日
回答済み: CHANDRA BABU GUTTIKONDA 2025 年 9 月 26 日
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.

回答 (1 件)

CHANDRA BABU GUTTIKONDA
CHANDRA BABU GUTTIKONDA 2025 年 9 月 26 日
  • 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.

カテゴリ

Help Center および File ExchangeLegend についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by