How to define matrices generated in Stateflow as Fixed size?
Hi,
I have had a look around the forum and while there are some similar questions to mine I simply am not understanding where I am going wrong.
Below is my top level design:
with the sub-level looking like this:
the aim for this code is to take two matrices, split them up in to smaller matrices and output complementary slices each time step.
My code works in this sense but trying to use it with further blocks causes this error: "This input port expects a fixed-size mode. The variable-size mode originates from ‘controller/Subsystem/Chart’. Examine the configurations of ‘controller/Subsystem/Matrix Multiply’ 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."
When not setting Slice A or B to variable size I get this error: "’slice_B’ is inferred as a variable-size matrix, but its size is specified as inherited or fixed. Verify ‘slice_B’ is defined in terms of non-tunable parameters, or select the ‘Variable Size’ check box and specify the upper bounds in the Size box."
What can I do to fix this issue? Thanks in advance!Hi,
I have had a look around the forum and while there are some similar questions to mine I simply am not understanding where I am going wrong.
Below is my top level design:
with the sub-level looking like this:
the aim for this code is to take two matrices, split them up in to smaller matrices and output complementary slices each time step.
My code works in this sense but trying to use it with further blocks causes this error: "This input port expects a fixed-size mode. The variable-size mode originates from ‘controller/Subsystem/Chart’. Examine the configurations of ‘controller/Subsystem/Matrix Multiply’ 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."
When not setting Slice A or B to variable size I get this error: "’slice_B’ is inferred as a variable-size matrix, but its size is specified as inherited or fixed. Verify ‘slice_B’ is defined in terms of non-tunable parameters, or select the ‘Variable Size’ check box and specify the upper bounds in the Size box."
What can I do to fix this issue? Thanks in advance! Hi,
I have had a look around the forum and while there are some similar questions to mine I simply am not understanding where I am going wrong.
Below is my top level design:
with the sub-level looking like this:
the aim for this code is to take two matrices, split them up in to smaller matrices and output complementary slices each time step.
My code works in this sense but trying to use it with further blocks causes this error: "This input port expects a fixed-size mode. The variable-size mode originates from ‘controller/Subsystem/Chart’. Examine the configurations of ‘controller/Subsystem/Matrix Multiply’ 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."
When not setting Slice A or B to variable size I get this error: "’slice_B’ is inferred as a variable-size matrix, but its size is specified as inherited or fixed. Verify ‘slice_B’ is defined in terms of non-tunable parameters, or select the ‘Variable Size’ check box and specify the upper bounds in the Size box."
What can I do to fix this issue? Thanks in advance! simulink, stateflow MATLAB Answers — New Questions