Suppose my model contains an Assignment block that I use to replace just one row or column of a matrix signal. However, if I input a properly sized replacement vector from a source block (such as a Constant block) I receive a matrix dimension mismatch error.

# MATLAB: Do I get a matrix dimension error when using the Assignment block with a 1-D signal in Simulink

simulink

###### Related Question

- Simulink addition block error
- 1-d gradient
- Do I receive a port dimension mismatch error when I use the variable selector block from the Signal Processing Blockset 6.8 (R2008b)
- Interpolation 1-D
- How does the ‘Interpret vector parameters as 1-D’ option affect the display of signal values and the export to workspace in Simulink 7.4 (R2009b)
- Do I receive an error when I pass a vector to an Embedded MATLAB Function Block and manipulate it inside the block code in Simulink 6.0 (R14) and later versions
- 1-D interpolation question
- Does the Merge block accept frame-based inputs with different dimensions in Simulink 6.1 (R14SP1)
- 1-D Heat equation

## Best Answer