How to use state-space block in simulink with one input

1 回表示 (過去 30 日間)
Beenish Mazhar
Beenish Mazhar 2012 年 9 月 1 日
コメント済み: Cheetamun Koshal 2016 年 6 月 25 日
Hi I am using state-space block in simulink. I am having two inputs;so I have used a mux but state-space block is not accepting it because input becomes a row vector and I need a scalar value as an input to the state-space block. What should I do to make it a scalar value. Any guidance or help will be greatly appreciated.
  2 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 9 月 1 日
編集済み: Azzi Abdelmalek 2012 年 9 月 1 日
  1. what are the sizes of your SS matrix A B C and D
Cheetamun Koshal
Cheetamun Koshal 2016 年 6 月 25 日
Actually the input should be in column vector form. Try to transpose the row vector. And also the size of the matrix A, B ,C and D are important so that the system works

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

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 9 月 1 日
you have said that you have two inputs, then i can guess that the size of B is nx2, n is the order of your system. in this case, you can use a "Mux" block

その他の回答 (1 件)

Beenish Mazhar
Beenish Mazhar 2012 年 9 月 1 日
Thank you I got the hint from the second point of your comment.Actually I am taking Matrix B to be of 4x1 and it should be of 4x2.

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by