Cody

Problem 506. Back to basics 25 - Valid variable names

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

Solution Stats

52.04% Correct | 47.96% Incorrect
Last solution submitted on Dec 04, 2016
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

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more