MATLAB: Binary multiplication in MATLAB.

binarybinary multiplication

I have 2 binary sequence string in MATLAB.
A =
-11-11111-1
11-1-111-1-1
111-11-1-11
-1-1-1-1-1-1-1-1
-11-1-111-1-1
111111-11
11-11-11-1-1
1-111-1-1-1-1
-11111111
1-1-1-1-1-1-1-1
B = [ 0 1 0 1 0 1 0 1 ];
Now, I have to multiply the first bit in "A" * all the bits in "B" (1st to last bits).
Then, the 2nd bit in "A" * all the bits in "B" (1st to last bits).
And so on until the last bit from "A".
Can anyone help me please..?

Best Answer

A(:)*B