Duration Array Limitations for Code Generation - MATLAB & Simulink (original) (raw)

When you create duration arrays in MATLABĀ® code that you intend for code generation, you must specify the durations by using the duration, years,days, hours, minutes,seconds, or milliseconds functions. See Dates and Time.

For duration arrays, code generation does not support the following inputs and operations:

Limitations that apply to classes also apply to duration arrays. For more information, seeMATLAB Classes Definition for Code Generation (MATLAB Coder).

See Also

duration | years | days | hours | minutes | seconds | milliseconds