Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a=rand(3,4);
- b=rand(4,3);
- [rows temp]=size(a);
- [temp cols]=size(b);
- for r=1:rows
- for c=1:cols
- temp1=a(r,:).*b(:,c)';
- d(r,c)=sum(temp1);
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement