Can't use laplace transformed expression with transfer function.

1 vue (au cours des 30 derniers jours)
haavardmk
haavardmk le 26 Jan 2021
Commenté : haavardmk le 29 Jan 2021
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"?

Réponse acceptée

Rohit Pappu
Rohit Pappu le 29 Jan 2021
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 commentaires
Walter Roberson
Walter Roberson le 29 Jan 2021
There can be additional work needed if there is a delay on the system. That shows up as an exp() term symbolically.
haavardmk
haavardmk le 29 Jan 2021
Not simple, but it did work! thanks guys!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by