bug in lang\makeValidName.m ?

4 visualizaciones (últimos 30 días)
kurtosis
kurtosis el 5 de Dic. de 2017
Comentada: kurtosis el 6 de Dic. de 2017
S = {'Item_#','Price/Unit','1st order','Contact'}; N = matlab.lang.makeValidName(S)
Then error looks like: Reference to non-existent field 'TextType'.
Error in matlab.lang.makeValidName>parseInputs (line 186) TextType = parser.Results.TextType;
Error in matlab.lang.makeValidName (line 72) [names, replacementStyle, prefix, TextType] = parseInputs(names, varargin{:});

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 5 de Dic. de 2017
Editada: Fangjun Jiang el 5 de Dic. de 2017
In MATLAB R2016b, no problem with your code
>> S = {'Item_#','Price/Unit','1st order','Contact'}; N = matlab.lang.makeValidName(S)
N =
1×4 cell array
'Item__' 'Price_Unit' 'x1stOrder' 'Contact'
  1 comentario
kurtosis
kurtosis el 6 de Dic. de 2017
yeah, you're right, it works on a fresh start-up. Though not under certain configurations of my code. Sorry for posting.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Clocks and Timers en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by