Multiplication and xor binary matrix
14 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I want to get
mc=[0 1 1 0] [ 1111 1111; 1111 0000; 1100 1100; 1010 1010]
the answer shuld be [00111100]
How to do that please ?
0 件のコメント
回答 (1 件)
Walter Roberson
2021 年 4 月 28 日
編集済み: Walter Roberson
2021 年 4 月 28 日
A = [0 1 1 0]
B =[ 1 1 1 1 1 1 1 1; 1 1 1 1 0 0 0 0; 1 1 0 0 1 1 0 0; 1 0 1 0 1 0 1 0]
mod(A*B,2)
Ag = gf(A,1)
Bg = gf(B,1)
Ag*Bg
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!