Error using append and connect

조회 수: 4 (최근 30일)
Abdul Moiz
Abdul Moiz 2023년 3월 5일
답변: Paul 2023년 3월 5일
G = tf([2],[1 4]);
H = 5;
system = append(G, H);
T = connect(system, 1,1,1);
% Simplify the transfer function
T = tf(T)
The answer should be 2/(s+14) but the output I get is 2/(s+4) can anyone help?

답변 (1개)

Paul
Paul 2023년 3월 5일
Hi Abdul,
The third input to connect, which is the connection matrix, is incorrect. It should have two rows. Check the doc page for connect(), paticularly the section that describes the function inputs and the example with index-based connection, to learn more about how to specficy the connection matrix. After doing so, feel free to come back here with more questions and code if still having problems.

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by