Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem 506. Back to basics 25 - Valid variable names

Created by Alan Chalker

Covering some basic topics I haven't seen elsewhere on Cody.

Given a string, return true if it is a valid MATLAB variable name, but not a MATLAB keyword, false otherwise

Examples:

    'foo' -> true
    'while' -> false

Problem Group

Solution Statistics

150 correct solutions 113 incorrect solutions
Last solution submitted on Oct 03, 2014