Info

此问题已关闭。 请重新打开它进行编辑或回答。

suppose i have a cell array a(1*256). let all cell elements are converted to binary and the first element is let it be10010100(8Bit)in the cell array. i want to compare each cell element with some other binary number let 10000000(8Bit) and store it.

1 次查看(过去 30 天)
suppose i have a cell array a(1*256). let all cell elements are converted to binary and the first element is let it be 10010100(8Bit). i want to compare each cell element with some other binary number let 00000001 or 10000000 (8Bit) and if a(1)==00000001 or 10000000,then store it in another matrix or array i.e p(1)=00000001 else p(1)=.10000000.. any body plz suggest the solution.
  3 个评论
aditya kumar sahu
aditya kumar sahu 2016-11-6
actually the problem is like this....there is an array and the first element(converted to binary)is to be compared to one condition such as if it is i.e a(1)== 00000001 | 10000000 and x==0(binary) then p(1)=00000001 elseif a(1)==00000001 | 10000000 and x=1 then p(1)=10000000.

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by