Given an input string, generate a variable name out of it in easy to read format by a programmer.
If the input string contains any special character other than ('_'), replace it with ('_') and then return it in readable format variable name.
input = 'this is an input var' output = 'thisIsAnInputVar'
input = 'this one has special char @123' output = 'thisOneHasSpecialChar_123'
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry PiLearn more
Opportunities for recent engineering grads.Apply Today
New to MATLAB?Learn MATLAB today!
Play games and win prizes!Learn more