Question: Write a function C = myMatSum ( A , B ) that computes the sum of two matrices A and B explicitly ( use a
Write a function myMatSum that computes the sum of two matrices A and explicitly use a while loop and a for loop It should output an error message when the sizes of the matrices don't match. For example:
Error using myMatSum
Arrays have incompatible sizes for this operation.
myMatSum; ;
ans
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
