Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Creating a Matrix by Manipulation

1 回表示 (過去 30 日間)
Julian
Julian 2015 年 10 月 6 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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.

回答 (1 件)

Joseph Cheng
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

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by