How to force a Simulink Function to re-use the same argument for Input/Output

I am creating a Simulink Function and want it to reuse the same argument for both input and output variables. 

How can I do this?

 Akzeptierte Antwort

This can be accomplished by assigning identical names to both the input and output arguments of a Simulink function. Please see the following for an example:
With the inside of the Simulink Function looking like this:
For more information on Simulink Functions please refer to the following documentation:

Weitere Antworten (0)

Kategorien

Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by