Binary multiplication in MATLAB.
9 次查看(过去 30 天)
显示 更早的评论
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..?
0 个评论
采纳的回答
Matt J
2021-1-3
A(:)*B
3 个评论
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Identification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!