Replacing part of a matrix with a matrix
57 次查看(过去 30 天)
显示 更早的评论
Hey guys,
I need to replace part of a matrix with a matrix of zeroes. For simplicity lets just say,
A = [1,2,3;4,5,6;7,8,9]
I would like to replace the top left 2x2 with a matrix of zeroes. How do I do this using matlab commands?
Thanks
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!