Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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 Ansicht (letzte 30 Tage)
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 Kommentare
aditya kumar sahu
aditya kumar sahu am 6 Nov. 2016
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.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by