Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Creating a Matrix by Manipulation

1 visualizzazione (ultimi 30 giorni)
Julian
Julian il 6 Ott 2015
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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.

Risposte (1)

Joseph Cheng
Joseph Cheng il 6 Ott 2015
you would index the item like
A(1,2) = 10; %A(1,2) says row 1 column 2 of A should = 10

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by