Can't use laplace transformed expression with transfer function.

조회 수: 2 (최근 30일)
haavardmk
haavardmk 2021년 1월 26일
댓글: haavardmk 2021년 1월 29일
When i laplace transform my expression ('r2') it becomes "sym" and i cant use it with any system or transfer function in the 's'-domain.
('r1') is numerically equivalent, but declared manually. it works fine.
Is there a way to make Laplace transforms become "tf"?

채택된 답변

Rohit Pappu
Rohit Pappu 2021년 1월 29일
A plausible solution is as follows
% Collect the coefficients of r2
h = collect(r2);
% Split the coefficients into numerator and denominator
[ii,jj] = numden(h);
% Convert the coefficients into numerical values
num = sym2poly(ii);
den = sym2poly(jj);
% Generate Transfer function from the above coefficients
model= tf(num,den);
  댓글 수: 2
Walter Roberson
Walter Roberson 2021년 1월 29일
There can be additional work needed if there is a delay on the system. That shows up as an exp() term symbolically.
haavardmk
haavardmk 2021년 1월 29일
Not simple, but it did work! thanks guys!

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by