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

46.79% Correct | 53.21% Incorrect
Last Solution submitted on Jan 27, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers320

Suggested Problems

More from this Author39

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!