Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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 visualización (últimos 30 días)
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 comentarios
aditya kumar sahu
aditya kumar sahu el 6 de Nov. de 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.

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by