matlab uicontrol 居中,MATLAB有关uicontrol的问题~

MATLAB框架程序请教~!十分感谢想麻烦大家帮忙改一下程序~貌似有很大的问题~

主要是对声音的滤波及分析~需要制作一个界面~首先选择输入声,然后选择滤波器种类~然后进行滤波~加入延迟进行及均衡处理~最后要求出现滤波前的波形~及其频谱还有滤波后的波形和频谱,主要的框架设计出来了~但是有很多问题~请大家看看~如果可以请您给改改~!万分感谢~

问题1:

设定控件区域框

h_frame1=uicontrol(h_mm,'style','frame','position',[0.56 0.03 0.4 0.24],'backgroundercolor',nandy1)

h_frame2=uicontrol(h_mm,'style','frame','position',[0.56 0.32 0.4 0.305],'backgroundercolor',nandy1)

??? Error using ==> uicontrol

Invalid uicontrol property: 'backgroundercolor'.

去掉后~还是有错误~!

??? Error using ==> uicontrol

Too many input arguments.

问题2:

%设定滑动键

h_slider3=uicontrol(h_mm,'style','slider','position',[0.57 0.44 0.18 0.04],'max',150,'min',10,'sliderstep',[0 0.1],'value',N,'callback',[N=gett(h_slider3,2);'HYHN(h_axes1,h_axes2,N,W1,W2,mm,b1)'])

??? h_slider3=uicontrol(h_mm,'style','slider','position',[0.57 0.44 0.18 0.04],'max',150,'min',10,'sliderstep',[0 0.1],'value',N,'callback',[N=gett(h_slider3,2);'HYHN(h_axes1,h_axes2,N,W1,W2,mm,b1)'])

|

Error: The expression to the left of the equals sign is not a valid target for an assignment.

问题3:

%设定各种静态文本框

>> h_text1=uicontrol(h_mm,'style','text','position',[0.57 0.58 0.18 0,04]'string','滤波器类型','backgroundcolor',nandy1,'fore','w')

??? h_text1=uicontrol(h_mm,'style','text','position',[0.57 0.58 0.18 0,04]'string','滤波器类型','backgroundcolor',nandy1,'fore','w')

|

Error: Missing MATLAB operator.

问题4:

%设定弹出框

h_popup1=uicontrol(h_mm,'style','popup','鸟叫声|电话声|噪声','position',[0.77 0.55 0.18 0.03],'back','w','call',['num=gett(h_popup1,2);',

if num==1,hyh=1;',

'[new,y,Fs]=syxhhd(h_axes3,h_axes4,w,w1,N1,hyh,b1);end,',

if num==2,hyh=2;',

'[new,y,Fs]=syxhhd(h_axes3,h_axes4,w,w1,N1,hyh,b1);end,',

if num==3,hyh=3;',

'[new,y,Fs]=syxhhd(h_axes3,h_axes4,w,w1,N1,hyh,b1);end,'])

??? if num==1,hyh=1;',

|

Error: Illegal use of reserved keyword "if".

很是郁闷:( ~打出程序好几天~但是总是有问题~希望可以指教~谢谢大家~!

[本帖最后由 mooni 于 2009-4-14 12:59 编辑]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值