Indexing into an Array in a For Loop is Off by 1?
1 view (last 30 days)
Show older comments
I am trying to index these values into the array for plotting but my results and my plot are off by one value?
0 Comments
Accepted Answer
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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!