You can define timetable inputs at the command line.
Programmatic specification of timetable input types by using preconditioning
(assert
statements) is not supported.
Use one of these procedures:
Alternatively, if you have a test file that calls your entry-point function with example
inputs, you can determine the input types by using
coder.getArgTypes
.
Use the -args
option:
TT = timetable(A,B,C,'RowTimes',D,'VariableNames',vnames); fiaccel myFunction -args {TT}
To provide a type for a timetable to fiaccel
:
Define a timetable. For example:
TT = timetable(A,B,C,'RowTimes',D,'VariableNames',vnames);
Create a type from
T
.
t = coder.typeof(TT);
Pass the type to fiaccel
by using the
-args
option.
fiaccel myFunction -args {t}
To specify that a timetable input is constant, use coder.Constant
with
the -args
option:
TT = timetable(A,B,C,'RowTimes',D,'VariableNames',vnames); fiaccel myFunction -args {coder.Constant(TT)}
timetable
| coder.Constant
(MATLAB Coder) | coder.typeof
(MATLAB Coder)