필터 지우기
필터 지우기

One of my equations is unstable in massive for loop

조회 수: 1 (최근 30일)
Maxwell Yant
Maxwell Yant 2020년 4월 17일
댓글: Geoff Hayes 2020년 4월 17일
Sorry for the confusing wording, but I will explain the best I can. In my code I am outputing a matrix using two for loops. However, the last element has to be added seperately because it tries to pull an elemnt outside the array size. But after about 30 loops the last number starts straying from 25 even though it should stay consistently at 25 for awhile. Im not sure why the equation is unstable and could use some help. I attatched screenshots of the code. Sorry if this is hard to understand but I would greatly appreciate help!!
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2020년 4월 17일
Maxwell - please attach your code rather than screenshots of the code. Also include instructions on how you can call it (including input parameters).

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

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