Binary multiplication in MATLAB.
조회 수: 7 (최근 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!