Variable-Sized Output from MATLAB Function block in Simulink

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

It would be useful if you could share your model.
Hello Dimitris,
you could find the matlab code in the attachment quest.txt
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.
Hello guys,i couldn't the .slx data. I printscreened it and upload it here as pdf data. Hope you guys can understand from the pictures in it. Thanks.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Preguntada:

el 10 de Jun. de 2017

Comentada:

el 20 de Jun. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by