bug in lang\makeValidName.m ?

조회 수: 4 (최근 30일)
kurtosis
kurtosis 2017년 12월 5일
댓글: kurtosis 2017년 12월 6일
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{:});

채택된 답변

Fangjun Jiang
Fangjun Jiang 2017년 12월 5일
편집: Fangjun Jiang 2017년 12월 5일
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
kurtosis
kurtosis 2017년 12월 6일
yeah, you're right, it works on a fresh start-up. Though not under certain configurations of my code. Sorry for posting.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Clocks and Timers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by