toggle menu
Icrontic
Categories
Discussions
Best of Icrontic
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Activity
Best of Icrontic
Sign In
·
Register
×
Home
›
Nerdery
Discussion
Matrix sum
Title
Author
Category
(All)
Announcements
Gaming
Team Fortress 2
World of Warcraft
Minecraft
Backlog of Shame
Nerdery
Hardware
Software
Movies & TV
Lifestyle
Music
Fashion
Food & Drink
Fitness
Home & Auto
Community
Events
Trading Post
Folding@Home
search subcategories
search archived
Tags
What to search
discussions
comments
polls
Date within
1 day
3 days
1 week
2 weeks
1 month
2 months
6 months
1 year
of
Examples: Monday, today, last week, Mar 26, 3/26/04
Search
Matrix sum
theo23
March 2009
edited March 2009
in
Nerdery
Hi, if i have 2 matrix A(20x27) anb B(20x27) and i want to find this sum:
the 1st column of A with 1st of B
the 1st of A with 2nd of b
.
.
.
1st with 27th of b
2nd of A with 1st of B
2nd of A with 2nd of B
.
.
.
How can i do that?
Thank you!!
0
Comments
Linc
Owner
Detroit
Icrontian
March 2009
edited March 2009
So you want a sum of all of that combined? Just add all the numbers in both matrices and multiply by 27.
0
shwaip
bluffin' with my muffin
Icrontian
March 2009
edited March 2009
do you want to multiply them elementwise and sum the products? Be more clear with what you want to do.
also post what you've tried so far.
0
theo23
March 2009
edited March 2009
Finally,i found the solution of this problem::)
for ii = 27:-1:1
for jj = 27:-1:1
Result(:,jj+(ii-1)*27) = A(:,ii) + B(:,jj);
end
end
0
Sign In
or
Register
to comment.
Comments
also post what you've tried so far.
for ii = 27:-1:1
for jj = 27:-1:1
Result(:,jj+(ii-1)*27) = A(:,ii) + B(:,jj);
end
end