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

21 views (last 30 days)
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

Answers (1)

Voss
Voss on 5 Jan 2022
B(1,3) = 0;

Products


Release

R11.1

Community Treasure Hunt

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

Start Hunting!