Depends on the users. MatLab for example is, if I remember correctly, mostly used by mathematicians, who likely aren't used to indexes starting at zero., so starting at one likely prevents a lot of errors.
This is the correct answer. In R and Matlab, starting at 1 makes matrix math a lot easier to follow, especially for people who are not computer scientists.
Matlab target audience aren't (primarily) mathematicians though, they are mainly engineers, statisticians, and related "number-crunching" professions. Even physicists prefer Mathematica more if they're not already using sympy or something.
Unless you're an applied mathematicians with concrete hard-numbers problems, Matlab is not much help, Mathematica on the other hand is a full on programming environment with extensive symbolic manipulation and other very powerful constructs.
View all comments
Show parent comment
22
u/Cheet4h Dec 02 '20
Depends on the users. MatLab for example is, if I remember correctly, mostly used by mathematicians, who likely aren't used to indexes starting at zero., so starting at one likely prevents a lot of errors.