Hi laiche,
You may refer to these two discussions regading the same issue:
- https://www.mathworks.com/matlabcentral/answers/248904-error-in-port-widths-or-dimensions
- https://www.mathworks.com/matlabcentral/answers/569154-rectifying-port-width-error
I hope it helps!