フィルターのクリア

How to store each and every bit of de2bi(k(r)) to the variable?

3 ビュー (過去 30 日間)
Veera Kalyani S
Veera Kalyani S 2017 年 1 月 7 日
コメント済み: Veera Kalyani S 2017 年 1 月 7 日
if true
% code
while r<((M*N)+1)
for i=1:M
for j=1:N
k(r)=imag1(i,j);
l(r)=k(r);
b(r)=de2bi(k(r));
r=r+1;
end
end
The de2bi(k(r)) is '10010101' but whether it is possible to store this 8 bit value as k(1)=1 k(2)=0 k(3)=0 ... ... k(8)=1

採用された回答

Walter Roberson
Walter Roberson 2017 年 1 月 7 日
b(r, :)=de2bi(k(r), 8);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by