Deleted on request by my prof. Sorry
조회 수: 1 (최근 30일)
이전 댓글 표시
Sorry, I was asked to take this down by my professor. He didn't want people copying my code next year.
댓글 수: 1
채택된 답변
Benjamin Großmann
2020년 2월 26일
편집: Benjamin Großmann
2020년 2월 26일
I assume that In your code line 28 it should be t(j) and t(j-1) instead of t(n) and t(n-1) respectively. Then your code at least is running.
For now, lets stick to that line. What is your intention here? You are extending an array by incrementing its last value. Try using the colon operator or the linspace command for array creation. For evenly spaced arrays they are way more powerful and comprehensible.
댓글 수: 4
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!