This question is closed. Reopen it to edit or answer.
index of out of bounds from txt
1 view (last 30 days)
Show older comments
Nicola on 21 Feb 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
Guys, i simplified the problem The code is:
The txt is
5 1994 4 8 9 14 40 0 31 16 5
Matlab says Attempted to access head(4); index out of bounds because numel(head)=1.
Please, help me, i'm in your hands!
Andy on 21 Feb 2014
you are constantly changing the value of head, not incrementing it. Try: -
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!