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

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

댓글을 달려면 로그인하십시오.

답변 (1개)

Vishal Rane
Vishal Rane 2013년 9월 23일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

질문:

2013년 9월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by