(adsbygoogle = window.adsbygoogle || []).push({}); I need help in partioning bits of random number in matlab!!

Hey guys,

I really need your help here...What i wanted to do actually is to partition the bits into 4 smaller group..

If anyone of you can give me a basic coding of it or maybe u can check if there anything wrong wit my coding..

Ex: x=80

rand('state',100)

randn('state',200)

a=rand(1,x)>0.5

should i do for loop? should i add this function

Ex: for x=(4:1:4)

a=rand(1,x)>0.5

end

but it will not give me a random number 0f 4 bits..how??? anyone can helpp please??

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# I need help in partioning bits of random number in matlab

Loading...

Similar Threads - need help partioning | Date |
---|---|

Matlab Help needed to fix a matlab code | Nov 8, 2017 |

Need help with integral | Dec 23, 2015 |

Need help with maple programming | Nov 20, 2015 |

I need help with Excel | Dec 12, 2014 |

New to mathematica, some basic help needed | May 10, 2014 |

**Physics Forums - The Fusion of Science and Community**