|
1F
我在图形界面窗口中定义了四个edit控件,要将其中输入的数据传入pushapply函数中进行运算,pushapply()部分代码如下:- function pushapply(hlineedit1x,hlineedit1y,hlineedit2x,hlineedit2y)
- global FileName;
- global x1;
- global g;
- hx=get(hlineedit1x,'string'); %获得输入的字符串函数 <2>
- hy=get(hlineedit1y,'string');
- vx=get(hlineedit2x,'string');
- vy=get(hlineedit2y,'string');
- string1= 'f1=';
- string2=';';
- user_entry1=[string1,hx,string2];
- eval(user_entry1');
- string1= 'g1=';
- string2=';';
- user_entry2=[string1,hy,string2];
- eval(user_entry2');
- string1= 'f2=';
- string2=';';
- user_entry3=[string1,vx,string2];
- eval(user_entry3');
- string1= 'g2=';
- string2=';';
- user_entry4=[string1,vy,string2];
- eval(user_entry4');
- ......
复制代码 可是运行时出现下面的错误:
??? Error: Incomplete or misformed expression or statement.
Error in ==> pushapply at 16
eval(user_entry2');
??? Error while evaluating uicontrol Callback.
??? Error: Incomplete or misformed expression or statement.
Error in ==> pushapply at 20
eval(user_entry3');
??? Error while evaluating uicontrol Callback.
??? Error: Incomplete or misformed expression or statement.
Error in ==> pushapply at 24
eval(user_entry4');
??? Error while evaluating uicontrol Callback.
请问这是什么问题,谢谢指教!
|
|