初学者问个问题
Error: Missing variable or function.??? Error :while evaluating uimenu Callback.
在使用callback属性时,,就出现这样的错误,,这是为什么啊?? 给程序吧 popcol=uicontrol(gcf,'Style','popup',...
'String','red|blue|green|yellow',...
'Position',,...
'CallBack',['cbcol=["R","B","G","Y"];',...
'set(gcf,"Color",cbcol(get(popcol,"Vaule")))']); popcol=uicontrol(gcf,'Style','popup',...
'String','red|blue|green|yellow',...
'Position',);
set(popcol,'CallBack','callpopup(popcol)');
function callpopup(popcol)
cbcol=['R','B','G','Y'];
set(gcf,'Color',cbcol(get(popcol,'value')))
运行之后还是不行咯
??? Undefined command/function 'callpopup'.??? Error while evaluating uicontrol Callback. 代码没问题的 将第二个保存为callpopup
在命令窗口输入第一个
应该没问题的 可以了,,多谢,
页:
[1]