Binary multiplication in MATLAB.

9 ビュー (過去 30 日間)
Noman Abir
Noman Abir 2021 年 1 月 3 日
コメント済み: Noman Abir 2021 年 1 月 3 日
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..?

採用された回答

Matt J
Matt J 2021 年 1 月 3 日
  3 件のコメント
Image Analyst
Image Analyst 2021 年 1 月 3 日
編集済み: Matt J 2021 年 1 月 3 日
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 2021 年 1 月 3 日
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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Identification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by