Effacer les filtres
Effacer les filtres

Simulink: Product block forces wrong dimension size

2 vues (au cours des 30 derniers jours)
William Alberg
William Alberg le 24 Mai 2020
Commenté : Ameer Hamza le 25 Mai 2020
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.

Réponse acceptée

Ameer Hamza
Ameer Hamza le 24 Mai 2020
You need to attach a reshape block. See the image
  2 commentaires
William Alberg
William Alberg le 24 Mai 2020
Thank you!
Ameer Hamza
Ameer Hamza le 25 Mai 2020
I am glad to be of help!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur General Applications dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by