no figure toolbar

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.
Eric

답변 (3개)

Matt Fig
Matt Fig 2011년 2월 15일

1 개 추천

I think what you want is this:
set(0,'defaultfiguretoolbar','figure');
To see the list of options, use:
set(gcf,'toolbar')

댓글 수: 3

Eric H.
Eric H. 2011년 2월 16일
Matt,
Thanks for your help.
>>set(0,'defaultfiguretoolbar','figure');
does help with a problem I was having running code written by someone else. But I am still having problems. First of all I have to enter
>>set(0,'defaultfiguretoolbar','figure');
everytime I start MATLAB. Is there no way to set this permanently. Second if I just enter
>> figure
I still don't get the toolbar associated with the figure that opens.
Matt Fig
Matt Fig 2011년 2월 16일
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 2011년 2월 16일
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.

댓글을 달려면 로그인하십시오.

Jiro Doke
Jiro Doke 2011년 2월 15일

0 개 추천

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 2011년 2월 16일

0 개 추천

Check if you have in your matlabrc.m or (if it exists) in the startup.m:
set(0,'defaultfiguretoolbar','none')
if is there, then comment it out.
Oleg

카테고리

도움말 센터File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

질문:

2011년 2월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by