Info

此问题已关闭。 请重新打开它进行编辑或回答。

datenum and Coder incomaptibility

2 次查看(过去 30 天)
Yossi Chait
Yossi Chait 2019-9-24
关闭: MATLAB Answer Bot 2021-8-20
Matlb Coder does not suppoer functions that such datenum and weeknum. Does anyone have alternative M-files that can be handled by the Coder? thanks in advance

回答(1 个)

Pratheek Punchathody
datenum is not supported for code generation in the previous version before R2019a. However, as a workaround datetime does support code generation and it is recommended to use datetime over datenum, even when not doing code generation.
Refer to the Documentation for more information on the datetime

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by