Function 'daysact' not supported for code generation.
Mostrar comentarios más antiguos
I am using this simple code inside a user defined Matlab function in SIMULINK
NumDays = daysact('20-March','21-March');
But it shows error that "Function 'daysact' not supported for code generation."
Respuesta aceptada
Más respuestas (1)
Sean de Wolski
el 14 de En. de 2021
You should use the newer and recommended datetime / duration classes which support c-codegen:
d = days(datetime(t1)-datetime(t2));
Categorías
Más información sobre Fixed-Point Designer en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!