MATLAB Answers

Andrew Trahan
0

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

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

0 Answers

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!