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

조회 수: 12 (최근 30일)
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 CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by