Create a matrix in Simulink

조회 수: 428 (최근 30일)
Linee Teh
Linee Teh 2020년 4월 28일
댓글: Ameer Hamza 2020년 5월 2일
The diagram below is the block diagram that I have created in order to generate the matrix B.
I want the matrix B to be in the size of [9x6] but what I have done in the simulink give me a warning message as: 'Magnetic/B' generated a [9x6] matrix data. It automatically reshaped the data to a one dimensional vector with 54 elements.
My question is: How to make the matrix B stay in the size of [9x6]?
I have attached the simulink model in the file as well. I am really appreciate your help.

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 4월 28일
편집: Ameer Hamza 2020년 4월 30일
Because in the function Interpreted MATLAB function block B, you have set the output dimension to 54. Change it to [9 6].
  댓글 수: 6
Linee Teh
Linee Teh 2020년 5월 2일
I am sorry that I forget to included the equation. x_dot=(A-BK)x + d where d is the disturbance.
Ameer Hamza
Ameer Hamza 2020년 5월 2일
do it like this

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by