Variable-Sized Output from MATLAB Function block in Simulink
Show older comments
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 Comments
Dimitris Iliou
on 16 Jun 2017
It would be useful if you could share your model.
Kevin Jasutyn
on 20 Jun 2017
Cam Salzberger
on 20 Jun 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
on 20 Jun 2017
Answers (0)
Categories
Find more on Interactive Model Editing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!