sopyulin 发表于 2008-10-15 11:56

one or more output are not asigment during call to…………”

各位帮看下,下面函数,在运行结果上没有错误,只是多了“one or more output are not asigment during call to…………”怎么办呀?
function Y=exm06(A,u1,u2,var1,var2,p1,p2)
%A,测试样本;u1,训练样本M均值;u2,训练样本F均值;
%var1训练样本M的协方差矩阵;var2样本F的协方差矩阵;
%p1,p2是测试样本的先验概率;
a=length(A); E1=inv(var1); E2=inv(var2);
   R=zeros(1,a);
   for m=1:a
       g1=(-1/2)*'*E1*-(1/2)*log(det(var1))+log(p1);
       g2=(-1/2)*'*E2*-(1/2)*log(det(var2))+log(p2);
       if (g1>=g2)
          R(1,m)=;
      else
         R(1,m)=;
      end
   end
   R
页: [1]
查看完整版本: one or more output are not asigment during call to…………”