I don't know how to fix "Index exceeds the number of array elements (1)".
1 view (last 30 days)
Show older comments
How to fix an "index exceeds the number of array elements (1) error"
0 Comments
Accepted Answer
Walter Roberson
on 11 Feb 2021
Your y0 is one number subtracted from another, not two numbers. When you want a negative number, put the negative sign immediately beside the number, 1 -1 or else use a comma between elements 1,- 1 but 1 - 1 is subtraction
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!