After running the following script:
h = figure('ToolBar','none'); ht = uitoolbar(h);
I receive the following error:
Attempt to call constructor uitoolbar with incorrect letter case.
I am unsure why that is the case especially since the script is listed on the official MathWorks website. Any help appreciated.
Best,
Matej

 채택된 답변

Sean de Wolski
Sean de Wolski 2012년 2월 22일

0 개 추천

Copying and pasting that works for me (R2011b). Can you try clearing your workspace, and copying the two lines of code from above?

댓글 수: 2

Matej
Matej 2012년 2월 22일
Hi Sean,
the workspace was cleared when I did this but after trying on several other computers which worked, I restarted the application and afterwards the script executed normally.
Thanks for your help!
Best,
Matej
Sean de Wolski
Sean de Wolski 2012년 2월 22일
You're welcome. Welcome to MATLAB Answers!

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Entering Commands에 대해 자세히 알아보기

태그

질문:

2012년 2월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by