destiny 发表于 2010-1-24 17:42

Undefined function or method 'ge' for input arguments of type 'sym'.

请教各位高手,程序如下,运行时会出现这样的错误:
?? Undefined function or method 'ge' for input arguments of type 'sym'.
Error in ==> Untitled0124 at 42
    if (t>=0+n*T_sp)&&(t<=(2-c_sp)*T_sp+n*T_sp);
其中k_mpis,k_mpir,k_m12,k_m34,T_sp均为已知。

d=0.3;
k_m=;
k_a=d*k_m;
syms t
n=0;
while 1
    if (t>=0+n*T_sp)&&(t<=(2-c_sp)*T_sp+n*T_sp);
      k_pis=k_mpis-k_a(1)
    else k_pis=k_mpis+k_a(1)
      n=n+1;
    end
end


我处于编程初级阶段,实在不知怎么解决,请高人指点一二,谢谢了

ChaChing 发表于 2010-1-24 23:27

符号(t)可以比大小吗?
页: [1]
查看完整版本: Undefined function or method 'ge' for input arguments of type 'sym'.