MATLAB Answers

Andrew Trahan

Simulink "MATLAB function" block, port width mismatch.

Asked by Andrew Trahan
on 2 Apr 2013

Error from embedding code in a "MATLAB function" block in Simulink is as follows:

" Port width mismatch. Input 'input3' expects a signal of size [128xxx1]. The signal received is of size [128x1]. "

I'm not even exactly sure what a signal of size "[128xxx1]" would look like, so any information is helpful. Thank you.

  1 Comment

Kaustubha Govind
on 3 Apr 2013

Have you configured the input size in the Ports and Data Manager? What is it set to?

0 Answers

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today