BSaleh
BSaleh

Reputation: 23

Passing function handler as input in a Simulink model

I have created a function handler in a .m file but I am working in a Simulink model and I want to pass this function handler as input to a subsystem in the model, how can I do that?

Upvotes: 1

Views: 995

Answers (1)

Væry Slightly
Væry Slightly

Reputation: 11

As explained in https://de.mathworks.com/help/simulink/ug/function-handle-limitations-for-code-generation.html

You can use function handles in a MATLAB Function block. You cannot use function handles for Simulink® signals, parameters, or data store memory.

Upvotes: 1

Related Questions