MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Instrukcja Obsługi Strona 249

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 282
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 248
B-11
The %continue directive can only appear within a %foreach, %for, or %roll
statement
The %continue directive can only be used in a %foreach, %for, or %roll
statement.
The %foreach statement expects a constant numeric argument
The argument of a %foreach must be a numeric type. For example:
%foreach Index = [1 2 3 4]
%endforeach
%foreach
cannot accept a vector as input.
The %if statement expects a constant numeric argument
The argument of a %if must be a numeric type. For example:
%if [ 1 2 3 ]
%endif
%if
cannot accept a vector as input.
The %implements directive expects a string or string vector as the list of
languages
You can use the %implements directive to specify a string for the language
being implemented, or to indicate that it implements multiple languages by
using a vector of strings. You cannot specify any other argument type to the
%implements directive.
The %implements directive specifies
type
as the type where
type
was
expected
The type specified in the %implements directive must exactly match the type
specified in the block or on the
GENERATE_TYPE directive. If you want to specify
that the block accept multiple input types, use the
%implements * directive, as
in:
%implements * "C" %% I accept any type and generate C code
Przeglądanie stron 248
1 2 ... 244 245 246 247 248 249 250 251 252 253 254 ... 281 282

Komentarze do niniejszej Instrukcji

Brak uwag