How to change a bit of matrix from 0 to 1

1 view (last 30 days)
Afluo Raoual
Afluo Raoual on 12 Mar 2021
Edited: Afluo Raoual on 15 Mar 2021
Dear members,
I have a matrix
and I have to write a program that verify if the final bits are '0' or '1'. If final bits are '0' the program change them to '1'.

Accepted Answer

David Hill
David Hill on 12 Mar 2021
M(6:11:end)=1;%for your Matrix M

Sign in to comment.

More Answers (0)


Community Treasure Hunt

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

Start Hunting!