[Simulink] Invalid dimensions specified for input port

15 vues (au cours des 30 derniers jours)
Miguel Perez Andrade
Miguel Perez Andrade le 6 Août 2019
I'm trying to simulate a simple state space system with feedback. The model I made is the following
simulink.png
This are the variables I'm using
simulink.png
It's clear A is 2x2, B is 2x1, C and K are 1x2 and D is a scalar value. When I run the simulation, I get the following error
simulink.png
The state vector x should be 2x1, rendering the matrix product K*x valid, but I'm getting an error. How can I solve this? Should I configure the output of the transfer block? I tried but I couldn't

Réponse acceptée

Miguel Perez Andrade
Miguel Perez Andrade le 7 Août 2019
The problem was I was integrating with a transfer function, instead of using the integrator block. They look the same in appearance, so beware

Plus de réponses (0)

Catégories

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

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by