How do I define input and output in state space model?

조회 수: 69 (최근 30일)
Ion
Ion 2012년 12월 8일
댓글: Aryan Singh 2021년 10월 24일
Hello everyone,
I´m doing a model for vehicle dynamics with a state space model. The state space model block includes the vehicle dynamics in matrix forms. However in the state space- block I can define just the A,B,C and possible D matrices. In the state space representation there are also dxdt (state variable derivatives), x (state variables), y (output vector) and u (input vector).
Is the u (input vector) the signal which comes into the state-space block input port in a form of vector?
Is the y (output vector) the signal which comes out of the state-space block output port in a form of vector?
Where do I include the x and it´s derivative dxdt?
Can I have a different name for the x? For example I would use v instead of x?
Thank you for helping me!
-Ion

답변 (2개)

Azzi Abdelmalek
Azzi Abdelmalek 2012년 12월 8일
If you have a MIMO system with 3 inputs and 2 outputs, use Mux block with 3 inputs and Demux block with 2 outputs.
For your last question, the State Space block represent your Differential equation
  댓글 수: 1
Aryan Singh
Aryan Singh 2021년 10월 24일
what if we have 2 inputs and 3 outputs? Also the inputs are displacement and its derivative(velocity)

댓글을 달려면 로그인하십시오.


Ion
Ion 2012년 12월 9일
Thank you,
but what about the x and dxdt symbols in the state-space form? Are they automatically created by implementing the A,B,C and (D) in the state-space block?
Does Simulink realize the real state variables just from the A,B,C and D matrices?
-Ion
  댓글 수: 2
Azzi Abdelmalek
Azzi Abdelmalek 2012년 12월 9일
편집: Azzi Abdelmalek 2012년 12월 9일
Yes, your system is defined by (A,B,C,D), the State Space block needs those matrices to simulate your equations, like written in the block
MADDEPPA PUJARI
MADDEPPA PUJARI 2021년 10월 11일
@Azzi Abdelmalek A, B,C, D are in matrix form thats fine how to define multiple input to state space model in matlab, like how to feed u1,u2,u3,u4... values at same time

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Event Functions에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by