Is there a way to nest transfer functions?

조회 수: 2 (최근 30일)
Matthew Mishrikey
Matthew Mishrikey 2021년 12월 28일
답변: Matthew Mishrikey 2021년 12월 28일
I wish to build up a transfer function inside a for loop such that each iteration builds up a new transfer function based on previous iterations.
This would look like ftest = 1/(sC3 + 1/(R3 + 1/(sC2 + 1/(R2 + 1/(sC1 + 1/R1)))))
I tried something like this
ftest = 0 ; ftest = tf(1, [c(length(r)) (1/r(length(r)) + ftest)])
ftest = tf(1, [c(length(r)-1) (1/r(length(r)-1) + ftest)])
But if you include a transfer function in the denominator tf just ignores the denominator.
The impedance of an n-pole cauer model takes this format!

채택된 답변

Matthew Mishrikey
Matthew Mishrikey 2021년 12월 28일
Okay, nevermind, found the solution is to use s = tf('s') rather than tf([num dem]).

추가 답변 (0개)

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by