Error in port widths or dimensions
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nitesh
el 20 de Jun. de 2011
Comentada: moayed mohamed
el 19 de Feb. de 2019
hello there! I am working on a Helicopter simulation code made on simulink. hen I try to run this code, it shows error "Error in port widths or dimensions". I am using a square input port with two inmputs coming and 4 outputs are expected. Its showing a question mark above the connecting lines from one input to the port. Dunno wats wrong. please help
1 comentario
Respuesta aceptada
Arnaud Miege
el 20 de Jun. de 2011
Have a look at the error message in more detail. It'll tell you: such block is outputting a signal of dimension x and is driving such block, which is expecting s signal of dimension y. This will help you to find out in which block the problem is located and fix it. From the model, you can also click on Format -> Port/Signal Displays -> Signal Dimensions to show the dimensions of the various signals in your model. When a '?' is shown, it means there's a problem with inconsistent dimensions.
HTH,
Arnaud
0 comentarios
Más respuestas (3)
sampath vp
el 31 de Oct. de 2017
hi,
i have the below error Error in port widths or dimensions. Output port 1 of 'lab55/Convert 1-D to 2-D/In' is a [64x1] matrix. can you pl suggest? thanks
0 comentarios
sampath vp
el 31 de Oct. de 2017
Error in port widths or dimensions. Output port 1 of 'lab55/Convert 1-D to 2-D/In' is a [64x1] matrix.
0 comentarios
Ver también
Categorías
Más información sobre Simulink Functions en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!