MATLAB: Can we use numbers in variable names

genvarnamevalid symbolvariable name

Hai,
Can we use numbers in variable names, while programming in matlab. For example, tetai2, 3abc, etc… Looking for your reply.
BSD

Best Answer

Yes, as long as it doesn't start with a number. See doc genvarname for more details.
>> Var2=1;
2Var=3;
??? 2Var=3;
|
Error: Unexpected MATLAB expression.