马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
<P>figure<BR>set(gcf,'name','基于Matlab的通信仿真','numbertitle','off');<BR>h_menu=uimenu(gcf,'label','&Option','position',3);<BR>h_sub1=uimenu(h_menu,'label','模拟调制');<BR>h_sub2=uimenu(h_menu,'label','数字调制');<BR>%--------------------------------------------------仿真主菜单<BR>h_subsub1=uimenu(h_sub1,'label','DSB','callback','DSB');<BR>h_subsub2=uimenu(h_sub1,'label','SSB','callback','SSB');<BR>h_subsub3=uimenu(h_sub1,'label','AM');<BR>%-------------------------------------------------模拟仿真菜单<BR>以上是我gui编程的主菜单,显示图形如下:<BR>函数DSB和SSB如下:<BR>function DSB <BR>uicontrol(gcf,'style','edit','position',[100,100,100,100]);<BR>uicontrol(gcf,'style','text','string','sf','position',[100,300,100,100]);<BR><BR>-----------------------------------------------------------------------------------<BR><BR>function SSB <BR>uicontrol(gcf,'style','edit','position',[400,100,100,100]);<BR>uicontrol(gcf,'style','text','string','sf','position',[400,300,100,100]);</P> |