custom number of the inputs 4 C sfunction

2 次查看(过去 30 天)
Hello everyone,
I need to write a sfunction in C with a custom number of the inputs, I found a way to do it with an m-file using this instructions
lengthInp=block.DialogPrm(1).Data;
y= block.InputPort(1).Data;
But I need to write a sfunction in C. Does anyone know to what these instruction correspond in C?
  1 个评论
grapevine
grapevine 2012-4-24
I maybe found something
ssGetSFcnParam
http://www.mathworks.nl/help/toolbox/simulink/sfg/ssgetnumsfcnparams.html
http://www.mathworks.nl/matlabcentral/answers/30629-pass-a-parameter-to-a-sfunction-written-in

请先登录,再进行评论。

采纳的回答

Kaustubha Govind
Kaustubha Govind 2012-4-25
This my reply to your comment here not help?

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Block and Blockset Authoring 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by