I am trying to implement a MATLAB Function block with variable-sized output, but I get the following error when I try to update my model:

`Output 'y' has variable size but the upper bound is not specified;explicit upper bound must be provided.`

Skip to content# MATLAB: How to resolve an error about variable sized data in the MATLAB Function block

###### Related Question

simulink

I am trying to implement a MATLAB Function block with variable-sized output, but I get the following error when I try to update my model:

`Output 'y' has variable size but the upper bound is not specified;explicit upper bound must be provided.`

## Best Answer