How to give two inputs to a state space system in simulink?

Hallo Everyone
I have quite a simple doubt, but one that has been bugging me for quite a while. As the question states, I am not able to connect two step signals to a state space system in simulink block which has an A matrix of 4 by 4 size and so on. I tried connecting InPort. But I think I am not quite clear how it works. Any kind of suggestion or links would help.
Thanks a lot in advance.

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 2 de Ag. de 2013
Pass you two step signals through a Mux block

9 comentarios

Yes, but I want the signals to operate at the same time interval.
Can you give more details about A,B,C and D?
Yes, A is a 4 by 4 matrix and B is a 4 by 2 matrix C is 4 by 4 and D again 2 by 2 matrix. This was possible by Mux. And I thought MUX will be selecting one signal at one point of time. Thank you.
Do you have any idea how can one create a Feedforward block in Simulink. I have a problem that I want to multiply 'A' matrix with 'X' (4 by 1 matrix). But in Simulink I don't know how to do it. 'A' matrix should come first and then 'X'. I am not getting how to do that.
If C is 4x4 and B is 4x2 then D can not be 2x2 it should be 4x2
nl2605
nl2605 el 5 de Ag. de 2013
Editada: nl2605 el 5 de Ag. de 2013
I am sorry. It was a typo. Yea,its 4 by 2 matrix.
For multiplication you can use a product block, but do not forget to change the parameters (in product block) from Element wise to Matrix
I tried using the product block. I think it didn't work for the reason you mentioned. Thanks.

Iniciar sesión para comentar.

Más respuestas (1)

Muhammad Adeel Ahsan Awan
Muhammad Adeel Ahsan Awan el 9 de Abr. de 2020
You can also use Vector concenate block to pass two inputs.

Categorías

Más información sobre Simulink Functions en Centro de ayuda y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by