%---------------------------------------------------------------------------
n1=[0.1 0.1 0.1]; %调用了子程序来求解滤波器系数
n2=[1 1 1];
n3=[0.9 0.9 0.9];
N=20;
M=50;
%设置图形界面
h_mm=figure('name','上证指数预测界面', 'units','normalized','position',...
[0.25 0.05 0.7 0.9],'menubar','none','numbertitle','off','color',n2);%左,低,宽,高
%设置图形句柄的各项属性
set(h_mm,'defaultuicontrolfontsize',13);
set(h_mm,'defaultuicontrolbackgroundcolor',n3);
set(h_mm,'defaultuicontrolunits','normalized');
set(h_mm,'defaultuicontrolfontunits','pixels');
set(h_mm,'defaultuicontrolfontname','楷体');
%设置轴对象楷体
h_axes1=axes('position',[0.09 0.55 0.7 0.4],'visible','on');
grid on;
h_axes2=axes('position',[0.09 0.05 0.7 0.4],'visible','on');
grid on;
%设定菜单
h_menu1=uimenu(h_mm,'Label','指导老师-杨文胜');
h_menu2=uimenu(h_mm,'Label','设计人员-付永彬');
% zmenu=uimenu(h_menu1,'Label','杨文胜');
% h_menu3=uimenu(h_menu2,'Label','付永彬','separator','on');
%设定空间区域框
%h_framel=uicontrol(h_mm,'style','frame','position',[0.8 0.03 0.9 0.23],'backgroundcolor',n2);
%设定文本框
%h_editl=uicontrol(h_mm,'style','edit','position',[0.38 0.07 0.15 0.08],'back','w','string','50','call',['hqy_wav2(h_axes1,h_axes2)']);
%h_edit2=uicontrol(h_mm,'style','edit','position',[0.6 0.07 0.15 0.08],'back','w','string','20','call',['hqy_wav2(h_axes1,h_axes2)']);
Ijp=('M=get(h_editl,"value")');
%设定各种静态文本框
%h_text1=uicontrol(h_mm,'style','text','position', [0.08 0.17 0.18 0.07],'string','预测类型','backgroundcolor',n1,'fore','w');
%h_text2=uicontrol(h_mm,'style','text','position', [0.35 0.17 0.18 0.07],'string','控制阶数','backgroundcolor',n1,'fore','w');
%h_text3=uicontrol(h_mm,'style','text','position', [0.58 0.17 0.18 0.07],'string','预测周数','backgroundcolor',n1,'fore','w');
%h_push1=uicontrol(h_mm,'style','push','position', [0.8 0.7 0.15 0.05],'string','拟合','backgroundcolor',n3,'fore','g','call',['num=gett(h_popup,2);','if num==1','hqy_wav(h_axes1,h_axes2);end,']);
%h_push2=uicontrol(h_mm,'style','push','position', [0.8 0.2 0.15 0.05],'string','预测','backgroundcolor',n3,'fore','r','call',['num=gett(h_popup,2);','if num==1','hqy_wav(h_axes1,h_axes2);end,']);
h_push3=uicontrol(h_mm,'style','push','position', [0.8 0.48 0.15 0.05],'string','关闭','backgroundcolor',n3,'fore','r','call','close');
%设定弹出框
h_popup=uicontrol(h_mm,'style','popup','string', '上证指数','position',[0.8 0.9 0.2 0.05],'back','w');
hqy_wav2(h_axes1,h_axes2);%调用hqy_wav2函数