How I able to replace a element in a particular position of matrix with a another value

19 visualizzazioni (ultimi 30 giorni)
I have B=ones(5,5) matrix
now i want to change the 1st row 3rd column element value from 1 to 0.
what is the command for doing that

Risposte (1)

Voss
Voss il 5 Gen 2022
B(1,3) = 0;

Prodotti


Release

R11.1

Community Treasure Hunt

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

Start Hunting!

Translated by