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
2019-10-26
编辑:Abdul Shaik
2019-10-26
0 个投票
%assign mySubString = FEVAL("char", FEVAL("extractBetween", CompiledModel.Name,1,16))
类别
在 帮助中心 和 File Exchange 中查找有关 Code Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!