Datetime class: Specifying the display format is not supported in code generation.

11 ビュー (過去 30 日間)
Md Nazmuzzaman Khan
Md Nazmuzzaman Khan 2021 年 3 月 17 日
コメント済み: Walter Roberson 2021 年 3 月 17 日
I need to use 'Format' in datetime like following:
time = datetime('now','Format','HHmmss.SSS')
This outputs: 144426.300
But when I try to use this in SImulink user defined function, I get the following error:
Specifying the display format is not supported in code generation.
Anyone knows how can I get the specific format in code generation? I went through the following page:
But didn't understand how it helps.
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 3 月 17 日
https://www.mathworks.com/help/coder/ug/datetime-array-limitations-for-code-generation.html

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by