How to assign values to matrix
Ältere Kommentare anzeigen
Good afternoon,
I have a matrix consisted of binary values (1 and 0), in which I want to assign the value of 1 to the 0 and 2 to 1 (for multiplication purposes). Is there a function to work on this problem?
Thanks,
1 Kommentar
KSSV
am 10 Feb. 2023
Question is not clear.....can you show us an example?
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 10 Feb. 2023
YourMatrix + 1
satisfies that mapping
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!