MATLAB Answers

simulink output space state block

조회 수: 1(최근 30일)
SV
SV 2019년 10월 17일
답변: Naveen Shanmuganantham 2020년 12월 18일
Hi everyone,
How can I make a scalar signal output from the discrete state space in simulink? I tried putting x '= Ax + Bu and y = Ix, where the dimensions of A are [2x2], B [2x1] and where I [2x2] matrix identity, but I still get two output values. Thank you so much for your help.
S.

답변(1개)

Naveen Shanmuganantham
Naveen Shanmuganantham 2020년 12월 18일
I understand that you need scalar output values from the Discrete State Space block.
To get the scalar output, please choose C matrix as [0 1] or [1 0] , and D matrix as 0 to get either the first or second scalar output.
With your current value of the C matrix [1 0;0 1], it will always output two values since it's in accordance with the matrix dimensions.

Community Treasure Hunt

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

Start Hunting!

Translated by