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 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

質問済み:

2017 年 12 月 5 日

コメント済み:

2017 年 12 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by