Filter löschen
Filter löschen

loop through array of strings in tic

2 Ansichten (letzte 30 Tage)
Caroline Brandberg
Caroline Brandberg am 9 Jun. 2017
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 Kommentare
Philip Borghesani
Philip Borghesani am 9 Jun. 2017
Bearbeitet: Philip Borghesani am 9 Jun. 2017
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 am 3 Jul. 2017
Yes, sorry for the confusion, and thanks @Philip Borghesani for the clarification. Any ideas of how to solve this issue?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by