Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

is there a way to make a for loop going through a table start at the same row after it switches columns?

조회 수: 1 (최근 30일)
Whenever this code runs it replaces values the way it should, but every time it moves over 1 column, it goes down 1 position in a row.
the results look like this
X B C
X Z C
X Z Y
A Z Y
A B Y
when they should look like
X Z Y
X Z Y
X Z Y
A B C
A B C
  댓글 수: 1
Steven Lord
Steven Lord 2018년 1월 18일
Please show "this code" that you run that demonstrates this behavior as well as a segment of code that creates a SMALL sample table on which to run "this code".

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by