MATLAB Answers

How to implement a function call/return in simulink ?

5 views (last 30 days)
Ramesh Vukyam
Ramesh Vukyam on 18 Nov 2013
Commented: Azzi Abdelmalek on 18 Nov 2013
I have some requirement:
if(...)
Put_Val(1) /*Function call to a sub function inside a c file*/
else
return(NOT_DEFINED)
How to implement it in simulink ?
I tried using function call sub system.But couldn't work it out.

  0 Comments

Sign in to comment.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 18 Nov 2013
Have you tried Interpreted Matlab Function block

  2 Comments

Ramesh Vukyam
Ramesh Vukyam on 18 Nov 2013
Thank you for your help Azzi. The Interpreted Matlab function block applies the specified MATLAB function or expression to the input. Here what I have is my own c function.I suppose it will not help in this case.

Sign in to comment.

Sign in to answer this question.


Translated by