필터 지우기
필터 지우기

Printing only the final result of the while loop

조회 수: 1 (최근 30일)
Brooke
Brooke 2012년 1월 17일
Hi, I have a matlab code that is of the form:
Initial conditions values of x, y
While loop In which the values of x and y are redesignated
Now i want to print the final values of x and y so I tyoed fprintf(...) after the end of my whhile loop
But it prints the initial values instead, what should I do?
Thanks
  댓글 수: 2
Grzegorz Knor
Grzegorz Knor 2012년 1월 17일
First of all, paste your code, it will be easier to help.
Doug Hull
Doug Hull 2012년 1월 17일
I suspect you are not 'redesignating' the variables like you think you are. Please post code.

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

답변 (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