Borrar filtros
Borrar filtros

Difference between S function and MATLAB Function?

29 visualizaciones (últimos 30 días)
Muhammad Ahsan Zamee
Muhammad Ahsan Zamee el 28 de Feb. de 2019
Comentada: Walter Roberson el 1 de Mzo. de 2019
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)?

Respuestas (1)

Raj
Raj el 1 de Mzo. de 2019
Editada: Raj el 1 de Mzo. de 2019
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 comentarios
Raj
Raj el 1 de Mzo. de 2019
Can you please elaborate a little bit? Thanks in advance.

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by