Simulink: Product block forces wrong dimension size

Hello all
I have a bit of a problem. My simulink model has an dimension error, but i cant understand why.
I need to perform the calculation x * x^T, in order to get a 5x5 result. (x is 5x1). But simulink "wants" to do x^T * x, to get a 1x1 result.
When i use the same block (copy-pasted), only connected to a display, it works as intended.
I have attached the files nessensary to run the model. The error takes place in a block called "ID block"
I have found, that if i disconnect a signal called "theta" from another block called "controller", the error disappears.

 채택된 답변

Ameer Hamza
Ameer Hamza 2020년 5월 24일

0 개 추천

You need to attach a reshape block. See the image

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

제품

릴리스

R2020a

질문:

2020년 5월 24일

댓글:

2020년 5월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by