Dynamically Sized Inputs and Outputs
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I understand that when building an S-Function, whether from an M-File, C-MEX or S-Function Builder, with dynamically sized inputs and outputs Simulink always set the outputs width as the same size of the inputs.
Is there any way of bypassing this restriction?
I would like to create an S-Function in which both inputs and outputs are dynamically sized, although the size of the output must be defined from a fixed-size input.
Thank you.
2 comentarios
Kaustubha Govind
el 7 de Sept. de 2012
Daniel: Do you mean the output is a variable-size signal whose size varies depending on the value of the input?
Respuesta aceptada
Guy Rouleau
el 10 de Sept. de 2012
Give a look at this post about creating variable size signals and s-function:
You will see that you have 2 options to determine the dimension of the output. If you type sfundemos in MATLAB, you will see ll example of s-function. Dig through that and you will find examples for both.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Block and Blockset Authoring en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!