Home Questions Index starts at Zero

Index starts at Zero

Duncan McLean Staff asked 12 years ago
From Jordan: We consistently see our task grabbing the next target row instead of the current target row we want.  We think this is an issue of a table starting its indexing at zero instead of one.  We remember an issue dealing with resolving indices starting at 1 in Matlab and 0 in the C-compiler.  Where do we look to fix this?
1 Answers
Duncan McLean Staff answered 12 years ago
You can change the indexing of any state flow variables by in the Model Explorer. Just select the variable you'd like to change, open the 'value attributes' tab, then change the 'first index'.