1.

Which is the invalid variable name in MATLAB?(a) x6(b) last(c) 6x(d) zI have been asked this question during an interview.I need to ask this question from Input and Output topic in division MATLAB Basics of MATLAB

Answer»

Right CHOICE is (c) 6x

To explain: A valid variable NAME starts with a letter, followed by letters, DIGITS, or UNDERSCORES. MATLAB is case sensitive, so A and a are not the same VARIABLES, and in 6x digit is followed by a letter which is invalid.



Discussion

No Comment Found

Related InterviewSolutions