I understand that you are encountering a "port widths or dimensions" error in Simulink after commenting out certain blocks and rewiring the diagram, involving a "Saturation" block and a "Mux" block. The error message indicates that the "Saturation" block outputs a 1-dimensional scalar, but "Mux" input port "2" expects a "1×2" vector, which hence leads to a signal dimension mismatch.
In your modified diagram, since the original function ("Fcn") blocks were removed, Simulink no longer receives two separate scalar inputs but instead gets a single "1×2" vector, which causes the conflict. To resolve this issue, you can refer to one of the two methods below:
Method 1: Correct the "Mux" Block Configuration
- Double-click on the "Mux" block.
- Make sure that the number of inputs is set correctly (for e.g., "2" for combining two scalars).
- Verify that you are feeding two individual scalar signals to the "Mux" instead of a pre-concatenated vector.
This now ensures that the "Mux" block receives the expected signal structure and avoids dimension mismatches.
Method 2: Use a "Vector Concatenate" Block
- Navigate to: "Simulink > Signal Routing > Vector Concatenate".
- Replace the "Mux" block with this block.
- Now, connect your "Saturation" output and the other input signals accordingly.
For further reference, kindly refer to the following official documentations:
I hope this helps!