bits of a binary input
1 回表示 (過去 30 日間)
古いコメントを表示
i have a binary user input saved in a non-cell how can i deal with each bit of that number independently ?
1 件のコメント
Jan
2012 年 3 月 29 日
Please explain, what a "binary user input saved in a non-cell" means in valid Matlab syntax.
回答 (1 件)
Thomas
2012 年 3 月 29 日
I dont know if this is what you are looking for..
c=[111111 010101 101010]
a=num2str(c)
to operate on each bit individually use
a(1) % or str2num(a(1)) and so on
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!