answersLogoWhite

0

For the resulting matrix, just add the corresponding elements from each of the matrices you add. Use coordinates, like "i" and "j", to loop through all the elements in the matrices. For example (for Java; code is similar in C):

for (i = 0; i <= height - 1; i++)
for (j = 0; j<= weidht - 1; j++)
matrix_c[i][j] = matrix_a[i][j] + matrix_b[i][j]


User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

ReneRene
Change my mind. I dare you.
Chat with Rene
FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
More answers

flow chart is the diagrammatic representation of an algorithm

User Avatar

Wiki User

14y ago
User Avatar

Use paper and pencil; a flowchart-symbol template helps, but is not required.

User Avatar

Wiki User

12y ago
User Avatar

Start -> Input A -> Input B -> Let C = A + B -> Print C -> End

User Avatar

Wiki User

10y ago
User Avatar

fdsfdsfdsfdsdf

User Avatar

Wiki User

12y ago
User Avatar

madhar chod

User Avatar

Wiki User

12y ago
User Avatar

Add your answer:

Earn +20 pts
Q: Flow chart for addition of two matrices?
Write your answer...
Submit
Still have questions?
magnify glass
imp