How to split vector to seqences
6 ビュー (過去 30 日間)
古いコメントを表示
Hello, can u help me please? I want to split generated numbers to 3 sequences for 8 bits ,for example i used :
x = randi([0 1],24,1)
and now i want to split these 24 numbers to 3 sequences for 8 bits, I could not find the answer.
0 件のコメント
回答 (3 件)
ahmed nebli
2018 年 12 月 3 日
編集済み: ahmed nebli
2018 年 12 月 3 日
u can use something like that:
for i=1:8:24
var = x[i,1]; % here you need to do what store var in someplace else in order not to loose it
end
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
