How do I add a column vector at the end of another column vector in a for loop

14 ビュー (過去 30 日間)
Omer hakan Yaran
Omer hakan Yaran 2022 年 5 月 24 日
コメント済み: Allen 2022 年 5 月 24 日
Hello all,
inxi = labels_win(:,1);
inx(:,i) = inxi-ws*(step-1);
val(:,i) = labels_win(:,2);
I am generating a column vector with each iteration of a for loop. I want to store each output inside the matrix "inx"
but I receive the following error
% Unable to perform assignment
% because the indices on the
% left side are not compatible
% with the size of the right
% side.
I need to store each iteration in a different column, how can I do that?
Note: Length of the columns vary
  1 件のコメント
Allen
Allen 2022 年 5 月 24 日
@Omer hakan Yaran do not repost the same question mulitiple times. You can always return to your original post and edit it if you need to make corrections or add additional details.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by