S function code writing

Hello, I am using Matlab S function builder in the Simulink. can anyone tell me how can I define internally computed parameters or states? for example: suppose a block has two parameters, the volume, and density of some object, and the output of the block is a function of the input signal and the weight of the object. In this case, the weight can be viewed as a third internal parameter computed from the two external parameters, volume, and density.
How can I define the internally computed parameter?
Regards, Ameer

1 个评论

Duplicates https://www.mathworks.com/matlabcentral/answers/348652-s-function-builder-internal-computed-parameters

回答(0 个)

此问题已关闭。

关闭:

2017-7-16

Community Treasure Hunt

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

Start Hunting!

Translated by