Deleted on request by my prof. Sorry
3 views (last 30 days)
Show older comments
Danisaurus
on 26 Feb 2020
Commented: John D'Errico
on 2 Mar 2020
Sorry, I was asked to take this down by my professor. He didn't want people copying my code next year.
1 Comment
Accepted Answer
Benjamin Großmann
on 26 Feb 2020
Edited: Benjamin Großmann
on 26 Feb 2020
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 Comments
More Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!