Multiplication and xor binary matrix
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Walter Roberson
il 28 Apr 2021
Modificato: Walter Roberson
il 28 Apr 2021
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
Vedere anche
Categorie
Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!