Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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 vue (au cours des 30 derniers jours)
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 commentaires
aditya kumar sahu
aditya kumar sahu le 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.
Jan
Jan le 6 Nov 2016
@aditya sahu: I cannot follow your description.

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by