How do I replace on variable with another variable?

조회 수: 4 (최근 30일)
Heejin Kim
Heejin Kim 2015년 1월 20일
댓글: Stephen23 2015년 1월 20일
I'm working on an if statement in a for loop, and I need to replace variable 'ax' with variable 'bx' continuously throughout the whole loop...any ideas?
  댓글 수: 2
Image Analyst
Image Analyst 2015년 1월 20일
Based on your other original question, you don't want to do this and should use a while loop instead of a for look like I said in your original question.
Stephen23
Stephen23 2015년 1월 20일
So what was wrong with the answers to your original question?:

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by