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 Exchange에서 Code 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