Variable-Sized Output from MATLAB Function block in Simulink
Mostrar comentarios más antiguos
I got this problem. I hope you guys can help me. Thanks. I want to see the output signal using Scope through Mux but this comes out.
Simulink cannot propagate the variable-size mode from the output port 1 of 'BA/MATLAB Function' to the input port 1 of 'BA/Mux'. This input port expects a fixed-size mode. The variable-size mode originates from 'BA/MATLAB Function/ SFunction '. Examine the configurations of 'BA/Mux' for one of the following scenarios: 1) the block does not support variable-size signals; 2) the block supports variable-size signals but needs to be configured for them.
I have tried directly connect the output to the Scope, but Simulink says that
"Computed maximum size of the output of function 'colon' is not bounded. Static memory allocation requires all sizes to be bounded. The computed size is [1 x :?]."
You can find my code in attachment
4 comentarios
Dimitris Iliou
el 16 de Jun. de 2017
It would be useful if you could share your model.
Kevin Jasutyn
el 20 de Jun. de 2017
Cam Salzberger
el 20 de Jun. de 2017
Hello Kevin, I think Dimitris meant the actual Simulink model. Since the issue is the interface between the MATLAB function block and the scope, the cause is probably in the setup of the model itself.
Kevin Jasutyn
el 20 de Jun. de 2017
Respuestas (0)
Categorías
Más información sobre Interactive Model Editing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!