Deleted on request by my prof. Sorry
3 次查看(过去 30 天)
显示 更早的评论
Sorry, I was asked to take this down by my professor. He didn't want people copying my code next year.
采纳的回答
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!