Subtracting two matrices of different size element by element
Show older comments
Hi every one
is there any way how to subtradt two matrices of different dimension let say A=ones(40) and B=ones(12)
How can we perform subtraction like S=A-B.
Thanks
Accepted Answer
More Answers (1)
Image Analyst
on 21 Feb 2013
0 votes
Not unless you resize one of them. But actually we'd need an actual example with actual arrays so we can understand your thought process. Please give us an example where it does exactly what you want and we can maybe tell you how to achieve that.
3 Comments
Algorithms Analyst
on 21 Feb 2013
Algorithms Analyst
on 21 Feb 2013
Thorsten
on 21 Feb 2013
It would be helpful if you give an example, e.g., what should be the result of
[1 2 3] - [4 5]
Categories
Find more on Operating on Diagonal Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!