Indexing into an Array in a For Loop is Off by 1?

1 view (last 30 days)
I am trying to index these values into the array for plotting but my results and my plot are off by one value?

Accepted Answer

Star Strider
Star Strider on 23 Jan 2019
Absolutely guessing here. Perhaps it is because your ‘x’ value begins at 0?
Array indices in MATLAB are integers greater than 0.

More Answers (0)

Tags

Products


Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!