Posted By:
20 Mar, 2013 5:20 pm PDT

How to add 2 matrices in Matlab

A = 5 2

      3 4

 

B = 6 3

      8 10

 

ans=A+B = 11 5

                  11 14

Attachment:None


lets say that you have two matrices stored in A and B, to add type the following in the Matlab

>>A+B

you can also store the summation in another variable C as

>> C= A+B;

Please watch the video for details

Was it useful?  




Please login to reply to this problem.



Related Problems on Fixoncloud