Matrix Maniplation: Removing a smaller matix from a larger matrix.
2 次查看(过去 30 天)
显示 更早的评论
Hi,
Say I have 2 matrices:
a=[1 2 3 4; 5 6 7 8; 9 10 11 12; 13 14 15 16];
b=[6 7; 10 11];
How could I remove b from a to create c. In the same way if a was a 36x3 matrix and b was a 16x3 matrix of any numbers I could remove the values of b from a to create c (20x3 matrix).
Thanks
3 个评论
Guillaume
2015-3-18
Yes to what? Note that I've put some questions mark in my c since I've no idea what you want.
I have no idea what sort of 20x3 matrix you're hoping to get. If you remove a square from a bigger square, you're left with a square with a hole, not a smaller square.
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!