function W = normw(W)
if nargin ~= 1
error('normw: Wrong # of input arguments');
end;
[n1 n2] = size(W);
if n1 ~= n2,
error('normw: W matrix must be square');
end;
n = ndims(W);
nterm = sum(W, n);
nterm = repmat(nterm,[ones(1,n-1) size(W,n)]);
% protect against zeros before dividing
nterm = nterm + (nterm==0);
% use the same W as output here to save RAM
W = W ./ nterm;
调用时一直在报错
错误使用 normw (line 24)
normw: Wrong # of input arguments
这是什么原因呀?
matlab新手,求各位大神赐教!!拜托拜托