필터 지우기
필터 지우기

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

조회 수: 13 (최근 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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops 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