about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/BNT/examples/static/Zoubin/rprod.m
blob: 95d3565d61d1a9cd204a9a26a7e0c303ed4180be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
% row product
% function Z=rprod(X,Y)

function Z=rprod(X,Y)

if(length(X(:,1)) ~= length(Y(:,1)) | length(Y(1,:)) ~=1)
  disp('Error in RPROD');
  return;
end

Z=zeros(size(X));

for i=1:length(X(1,:))
  Z(:,i)=X(:,i).*Y;
end