Shifting vectors with the same matrix using 'for' loop

1 回表示 (過去 30 日間)
Afluo Raoual
Afluo Raoual 2021 年 3 月 15 日
編集済み: Afluo Raoual 2021 年 5 月 21 日
Dear members
I have a matrix of dimensions 10*20
And I have a vector of 50 bits
I have the main program that I use for my need. But I want use this program for each 20 part of this vector.
I want use 'for' loop firstly to use the red part of the matrix with 20 first bits of V , than to repeat the use of the other parts of matrix
So it's a gender of shifting each 10 bits of V with the same part of matrix.
  2 件のコメント
David Hill
David Hill 2021 年 3 月 15 日
What operation do you want to do with the matrix and V? I have no idea what your question is.
Afluo Raoual
Afluo Raoual 2021 年 3 月 15 日
It's about decoding this vector using this matrix

サインインしてコメントする。

採用された回答

Jan
Jan 2021 年 3 月 15 日
I'm not sure what you want to achieve. Maybe you can post the wanted output created by hand?
A bold guess:
V = randi([0,1], 50);
for k = 1:10:50 - 19
aV = V(k:k+19);
... Do what you want here
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by