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

Walter Roberson
Walter Roberson 2017년 7월 16일
Duplicates https://www.mathworks.com/matlabcentral/answers/348652-s-function-builder-internal-computed-parameters

답변 (0개)

이 질문은 마감되었습니다.

질문:

2017년 7월 16일

마감:

2017년 7월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by