Difference between S function and MATLAB Function?

조회 수: 53 (최근 30일)
Muhammad Ahsan Zamee
Muhammad Ahsan Zamee 2019년 2월 28일
댓글: Walter Roberson 2019년 3월 1일
Hello
I would like to know whats the difference between Matlab function and S function? Can I use any of them for any system? What is the necessity of using S functions over Matlab functions (the cases)?

답변 (1개)

Raj
Raj 2019년 3월 1일
편집: Raj 2019년 3월 1일
Hello,
MATLAB function or User defined function allows you to write your own function in MATLAB language. This is basically used in Simulink where using inbuilt blocks complicates the model. S function block on the other hand allows you to integrate an executable version of your code in other high level programming languages line C,C++,Digital FORTRAN etc into simulink. You need to have a compiler for respective language. For example the MING compiler works perfectly for integrating Fortan code into Simulink.
  댓글 수: 3
Raj
Raj 2019년 3월 1일
Can you please elaborate a little bit? Thanks in advance.

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

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by