How to change a bit of matrix from 0 to 1
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Afluo Raoual
am 12 Mär. 2021
Bearbeitet: Afluo Raoual
am 15 Mär. 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'.
0 Kommentare
Akzeptierte Antwort
David Hill
am 12 Mär. 2021
M(6:11:end)=1;%for your Matrix M
3 Kommentare
David Hill
am 12 Mär. 2021
6=size(M,1)+1
11=size(M,1)*2+1
M(size(M,1)+1:size(M,1)*2+1:end)=1;
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!