Can't use laplace transformed expression with transfer function.

1 次查看(过去 30 天)
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);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by