Extract substring in TLC file.

I am wanting to extract the first 16 characters from the string CompiledModel.Name, would anyone be able to advise me on how to do this.
I have tried variations of CompiledModel.Name[1:16] but to no avail.
The name is 17 characters long at the moment so I know it is not a size issue.
Many Thanks Mike

回答 (1 件)

Abdul Shaik
Abdul Shaik 2019 年 10 月 26 日
編集済み: Abdul Shaik 2019 年 10 月 26 日

0 投票

%assign mySubString = FEVAL("char", FEVAL("extractBetween", CompiledModel.Name,1,16))

カテゴリ

ヘルプ センター および File ExchangeCode Generation についてさらに検索

タグ

質問済み:

2015 年 1 月 20 日

編集済み:

2019 年 10 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by