全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 MATLAB等数学软件专版
2359 2
2018-08-23

   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新手,求各位大神赐教!!拜托拜托

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2018-10-23 20:12:40
请问楼主有normw.m的文件么?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2021-5-10 17:28:20
请问你解决问题了吗?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群