建模完成后,程序源代码出错,如下,关键是我没用到sum函数啊,求高手指点
for i=1:length(x)
SNR=x(i);
sim('jiawu');
y(i)=mean(BitErrorRate);
end
semilogy(x,y);
??? Function 'sum' is not defined for values of class 'struct'.
Error in ==> sum at 41
[varargout{1:nargout}] = builtin('sum', varargin{:});