Checking proposed measurement names

An engineering team proposes 4load, beam load, beam_load2 and end as MATLAB variable names for a measured force. Complete the naming rules using words from this bank: letter, digit, underscore, space, keyword, function. Use each selected word once.


The first character of a MATLAB variable name must belong to the character type called , so 4load is invalid.


After the first character, the only character type permitted besides letters and underscores is the , so beam_load2 is valid, whereas the space in beam load is not permitted.


Although end contains only letters, it cannot be used as a variable name because it is a MATLAB .

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 The MATLAB Environment and Workspace Questions: