State Space Inputs in Simulink
13 ビュー (過去 30 日間)
古いコメントを表示
I have a model in Ax+Bu form where A is 2x2 and B is 2x1. I am trying to add a control input to the state space block using a mux block but keep getting a dimensional mismatch error. The input to the state space only accepts a single value. What's going on here? I'm new to Simulink but this doesn't make any sense.
0 件のコメント
回答 (1 件)
Chinmayi Lanka
2016 年 11 月 22 日
編集済み: Chinmayi Lanka
2016 年 11 月 22 日
The State-Space block implements a system whose behavior is defined as:
x'= Ax+Bu
y = Cx+Du
where x is the state vector, u is the input vector, y is the output vector and x0 is the initial condition of the state vector.
Further, the matrix coefficients must have these characteristics:
A must be an n-by-n matrix, where n is the number of states.
B must be an n-by-m matrix, where m is the number of inputs.
C must be an r-by-n matrix, where r is the number of outputs.
D must be an r-by-m matrix.
You can set the matrix coefficients by modifying the 'Block Parameters' (Double click on the block).
The block has only one input and one output port. The input to the block is 'u' and the output will be 'y'.
You can refer to the following example for more information:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で General Applications についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!