I don't know how to fix "Index exceeds the number of array elements (1)".

3 views (last 30 days)
How to fix an "index exceeds the number of array elements (1) error"

Accepted Answer

Walter Roberson
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)

Categories

Find more on Data Types in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!