Binary multiplication in MATLAB.

9 visualizaciones (últimos 30 días)
Noman Abir
Noman Abir el 3 de En. de 2021
Comentada: Noman Abir el 3 de En. de 2021
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..?

Respuesta aceptada

Matt J
Matt J el 3 de En. de 2021
  3 comentarios
Image Analyst
Image Analyst el 3 de En. de 2021
Editada: Matt J el 3 de En. de 2021
Then Accept this Answer. But if A is of class "string", like you said here and in your other questions, then you cannot multiply a string array by a double array.
Noman Abir
Noman Abir el 3 de En. de 2021
Basically, I am working with a voice signal. I am trying to use CDMA method here. I found these binary values after dec2bin operation. I am a bit confused about it that the binary values are in a string or not.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Data Type Identification en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by