How to implement a function call/return in simulink ?

1 次查看(过去 30 天)
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.

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-11-18
Have you tried Interpreted Matlab Function block
  2 个评论
Ramesh Vukyam
Ramesh Vukyam 2013-11-18
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by