loop through array of strings in tic

조회 수: 1 (최근 30일)
Caroline Brandberg
Caroline Brandberg 2017년 6월 9일
댓글: Caroline Brandberg 2017년 7월 3일
Hi,
I want to loop through an array of strings in tlc that I retrieve from a MATLAB function.
I.e., something like the following: (OBS, this code doesn't work)
%assign values = FEVAL("my_fcn", arg)
%assign nbrOfValues = FEVAL("length", values)
%foreach i = nbrOfValues
%<values[i]>
%endforeach
How do I do this?
  댓글 수: 4
Philip Borghesani
Philip Borghesani 2017년 6월 9일
편집: Philip Borghesani 2017년 6월 9일
This is not MATLAB code it is tlc for the Target Language Compiler to create an S-function for use with Simulink and RTW.
Caroline Brandberg
Caroline Brandberg 2017년 7월 3일
Yes, sorry for the confusion, and thanks @Philip Borghesani for the clarification. Any ideas of how to solve this issue?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Target Language Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by