Having some issues with callback using uimenu, when a certain option is selected I want it to change the color map of the whole figure. Here is my code.
Function Startup fig = figure('Toolbar','none','MenuBar','none')Main = uimenu(fig,'Label','File'); ImageSettings = uimenu(File,'Label','Jet',... 'Callback', 'CM1');end function CM1%colormap(jet)
disp('Jet')end
The error that occurs is
Too many input arguments.
Error while evaluating uimenu Callback
Also I have tried to change my callback from: 'Callback', 'CM1'); to 'Callback', @CM1);
That did not seem to work either.
Best Answer