Invalid dimension specified for input port.

I am attempting to extend one of the example 2D Kalman filter Simulink models to 3D, but am receiving the following error:
Invalid dimension specified for input port.
Please advise.

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2026년 1월 7일
편집: Fangjun Jiang 2026년 1월 7일

0 개 추천

Change the gain parameter of the feedback Gain block. Make it 3 values or 1 value.

댓글 수: 3

Thank you for this answer. I increased the Gain block to 3 values. PSA new error related to the XY velocity block.
Different model, different cause.
In this model, every where it is expecting the size of 2 (x y acceleration, velocity, position). What is the point of changing one of the input port to be size of 3 ???
Jehan Jayanetti
Jehan Jayanetti 2026년 1월 8일
편집: Jehan Jayanetti 2026년 1월 8일
Thank you for this answer. I have made a modification to the XY acceleration model to accept 3 inputs and thus widen the bus length to 3. PSA a screenshot of a new error resulting from the modification.

댓글을 달려면 로그인하십시오.

제품

릴리스

R2021a

질문:

2026년 1월 7일

편집:

2026년 1월 8일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by