控件怎么回调函数文件?
请问大虾们?在制作radio控件时,我想用它回调一个函数文件,因该怎么调用?比如控件为:quxianshuchu,怎么调用该函数文件画曲线啊?回复:(zjg2000)控件怎么回调函数文件?
直接把回调函数名写在radio空间的callback中就行了请你看看错误出现在哪里?
hc_quxian=uicontrol(gcf,'style','radio',...<BR> 'position',,...<BR> 'string','优化前曲线')<BR>set(hc_quxian,'callback',[...<BR> 'cla,',...<BR> 'set(hc_quxian,''value'',get(hc_quxian,''youhuaqian.m'')),'...<BR> ])??
<P>错误提示是<BR><BR>??? There is no 'youhuaqian.m' property in the 'uicontrol' class.</P><P>??? Error while evaluating uicontrol Callback.</P>
回复:(zjg2000)控件怎么回调函数文件?
不用函数的后缀
页:
[1]