Info
此问题已关闭。 请重新打开它进行编辑或回答。
Creating a Matrix by Manipulation
1 次查看(过去 30 天)
显示 更早的评论
Hi, How do you create a matrix that is identical to another matrix except for one entry? For example, if there is a matrix A=[1 2 ; 3 4], how do you create a matrix B=[1 10 ; 3 4]?
Thank you.
0 个评论
回答(1 个)
Joseph Cheng
2015-10-6
you would index the item like
A(1,2) = 10; %A(1,2) says row 1 column 2 of A should = 10
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!