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.

 Accepted Answer

Pass you two step signals through a Mux block

9 Comments

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
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.

Sign in to comment.

More Answers (1)

You can also use Vector concenate block to pass two inputs.

Categories

Community Treasure Hunt

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

Start Hunting!