MATLAB Answers

How to solve Index in position 1 exceeds array bounds (must not exceed 1).

3 views (last 30 days)
When I am trying to run my code in matlab 2020a version I am getting this error. but when I am running the same code in matlab 2018b version, it runs normally. why am i getting this error and how can i solve this error. Please guide me.
With regards,

Sign in to comment.

Accepted Answer

David Hill
David Hill on 19 Jun 2020
You could always store it as a vector in the size you need it.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!