MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manual de Serviço Página 249

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 282
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 248
1 2 ... 244 245 246 247 248 249 250 251 252 253 254 ... 281 282

Comentários a estes Manuais

Sem comentários