Hide/Disable 'File' menu in Matlab figure window

How to Hide/ Disable the 'FILE' menu alone from figure window?
thanks in advance!!!
Prem

 Akzeptierte Antwort

Daniel Shub
Daniel Shub am 21 Sep. 2011

1 Stimme

The simplest might be:
set(gcf, 'MenuBar', 'None')
If you need more control I would start with:

2 Kommentare

premraj
premraj am 21 Sep. 2011
this will hide the entire menu right??
Atleast i need to keep the Hand/Rotation tool menu.
Daniel Shub
Daniel Shub am 21 Sep. 2011
You are correct, the set method will hide everything. I have edited my answer to provide a link.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Jim Hokanson
Jim Hokanson am 1 Mai 2020

0 Stimmen

Here's what I needed:
h = findall(gcf, 'Tag', 'figMenuFile')
set(h,'visible','off')
All the other menus appear to be tagged in a similar way:
  • figMenuHelp
  • figMenuWindow
  • etc.

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Hilfe-Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by