Main Content

Datetime Arrays

Definition and use of datetime arrays for MATLAB Function blocks

The values in a datetime array represent points in time using the proleptic ISO calendar. With datetime arrays, you can represent dates and times in MATLAB® code intended for code generation.

Blocks

MATLAB FunctionInclude MATLAB code in models that generate embeddable C code

Topics

Code Generation for Datetime Arrays

Use datetime arrays in MATLAB code intended for code generation.

Datetime Array Limitations for Code Generation

Adhere to code generation restrictions for datetime arrays.