MATLAB: Uitoolbar related error

uitoolbar

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

Best Answer

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