How can i solve for this issue with the logical flow
1 view (last 30 days)
% for i=1:n+1
Can someone please help me with this i cant seem to make it work, what can i do to make the the error of logical go away?
Array indices must be positive integers or logical values: %This is the error show
Chad Greene on 6 May 2021
I think the error is here:
The first time through the loop, i=1, meaning i-1=0. There is no zeroth element of q. Which element of q are you trying to access?