Check proposed sensor variable names

A laboratory team proposes six names for variables in MATLAB. Classify each name by entering valid or invalid in the table. Judge whether MATLAB permits the name, even when using it might interfere with an existing function. All names are short enough to satisfy MATLAB's name-length limit.

Proposed nameValid or invalid
sample_2
2sample
sample-rate
end
sqrt
_sample

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Starting with MATLAB Questions: