no figure toolbar

15 Ansichten (letzte 30 Tage)
Eric H.
Eric H. am 15 Feb. 2011
When I open a figure in Matlab the toolbar is not displayed. So if I enter
>> figure
I get the same result as if I entered
>> figure('Toolbar','none')
How do I change the default behavior?? Thanks.

Antworten (3)

Matt Fig
Matt Fig am 15 Feb. 2011
I think what you want is this:
To see the list of options, use:
  3 Kommentare
Matt Fig
Matt Fig am 16 Feb. 2011
Put the command in your startup.m file. just type:
edit startup
This is the file MATLAB runs every time it starts.
Matt Fig
Matt Fig am 16 Feb. 2011
Also, see Loren's blog on the startup.m file. Go to BLOGS at the top of the page, click on Loren's blog and search for startup.

Melden Sie sich an, um zu kommentieren.

Jiro Doke
Jiro Doke am 15 Feb. 2011
I'm not sure if you're asking how to not display the toolbar by default, or asking why your figure does not display the toolbar (and how to fix the default).
To change default properties for a figure toolbar, you can do the following:
set(0, 'defaultFigureToolbar', 'none')
To remove the default setting,
set(0, 'defaultFigureToolbar', 'remove')

Oleg Komarov
Oleg Komarov am 16 Feb. 2011
Check if you have in your matlabrc.m or (if it exists) in the startup.m:
if is there, then comment it out.


Mehr zu Graphics Object Properties finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by