How to link matlab code to s-function in simulink?

hello,
I have a matlab code and i want to implement that code in simulink using S-Function. Even though i created S-function file and added to the block, i am not sure that S-function block is reading the code. the output is same as input. can anyone help me?

1 Kommentar

You may want to set breakpoints in your MATLAB code and debug it.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Vishal Rane
Vishal Rane am 23 Sep. 2013

0 Stimmen

Any particular reason to implement matlab code in simulink using S-Functions? You could use the matlab function block for this. Refer this

Kategorien

Mehr zu Simulink Coder finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 23 Sep. 2013

Community Treasure Hunt

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

Start Hunting!

Translated by