Can i add heaviside step function in Matlab runtime library?

3 visualizaciones (últimos 30 días)
I'm having issue with heaviside step function with Matlab runtime.
I have main.m which includes heaviside step function inside it. No problem with Matlab itself.
My workflow is : Compiling main.m to executable file and submit it to computational node on Centos.
To do this, i installed Matlab Runtime. However, it shows error message that it can't find the heaviside function.
So, i want to add heaviside function to Runtime library if i could.
Is it possible?
If is not possible, is it the only to install Matlab itself on computational nods?
Thank you.

Respuesta aceptada

Steven Lord
Steven Lord el 13 de Abr. de 2020
Are you trying to call the heaviside function in Symbolic Math Toolbox? Nothing in Symbolic Math Toolbox is supported for use with MATLAB Compiler.
Are you trying to call the heaviside function in Simulink Test? That too is not supported for use with MATLAB Compiler.
  3 comentarios
Steven Lord
Steven Lord el 13 de Abr. de 2020
For numeric integration use integral. But you'll need to either tell integral that your function is 'ArrayValued' or you'll need to modify your unit function to properly handle being called with a vector of values for x. See the documentation page for if to understand how it behaves when the condition is non-scalar.
Hyo Geon Park
Hyo Geon Park el 14 de Abr. de 2020
Thank you Steven. It was really helpful to solve this problem.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by