How to assign values to matrix
古いコメントを表示
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 件のコメント
KSSV
2023 年 2 月 10 日
Question is not clear.....can you show us an example?
採用された回答
その他の回答 (1 件)
Walter Roberson
2023 年 2 月 10 日
YourMatrix + 1
satisfies that mapping
カテゴリ
ヘルプ センター および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!