MIMO systems input/output response in Simulink

9 ビュー (過去 30 日間)
Muhammed Emin Yavuzaslan
Muhammed Emin Yavuzaslan 2025 年 1 月 28 日
コメント済み: Shivam Gothi 2025 年 1 月 29 日
I'm trying to simulate a plant with step input. This plant have two inputs and two outputs each input.
When i use 'step' command with MATLAB i'm getting 4 plots and that's what i want.
But in simulink i can't get 4 plots im getting just two.
and i'm using these simulink model;
How can get fix it ?
Thanks

回答 (2 件)

Shivam Gothi
Shivam Gothi 2025 年 1 月 29 日
I understand that you want the step response of 2 input and 2 output system. You are getting the 4 plots correctly if you use MATLAB script, but same system when simulated in Simulink produces only two responses instead of four.
This is an expected behaviour. Simulink is not finding the step response of the system in the above case.The simulink solves the state-space model of a system for the given input signals (In your case, They both are step signals). In simpler words, it is plotting the outputs of the plant when both the input signals are present together. As your plant has two output ports, simulink will find both the outputs by exciting the system with both the inputs present at the input ports.
On the other hand, "step" command in MATLAB does the following:
  • Exite the plant with a unit step input at only one of the input ports (), and find the outputs and . This will giive two plots:
  • Now exite the plant with unit step input at the other input port (), keeping , and find the outputs and . This will again give two plots:
In this way, you can get four plots showing the step response of plant for each corresponding input-output pair.
Work-around:
To obtain step responses for each input-output pair in Simulink, you can follow this approach:
  1. Single Input Excitation: Apply a unit step input to one of the input ports while ensuring the other input remains at zero. Measure the system's outputs in response to this input.
  2. Repeat for Other Input: Next, apply the unit step input to the second input port, keeping the first input at zero. Again, record the system's outputs.
By following these steps, as illustrated in the accompanying image, you can effectively analyze the step responses for each input-output pair in your state-space model.
I hope it answers the question !

Muhammed Emin Yavuzaslan
Muhammed Emin Yavuzaslan 2025 年 1 月 29 日
Hello Sir, @Shivam Gothi
Thanks for replying my question. It's make sense.
I just want to use one state space block for analyze all system but it seems it cannot possible with simulink.
Thanks again.
  1 件のコメント
Shivam Gothi
Shivam Gothi 2025 年 1 月 29 日
Both the state-space models attached in screen-shot are same. Therefore, you are using effectively one state-space model for your entire system. Just you need to excite only one port at a time.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet Started with Control System Toolbox についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by