Laplace from symbolic to tf tooling.
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello, I want to use the function stepinfo().
I understood from different posts that "Control System Toolbox objects and Symbolic Math Toolbox objects are inherently incompatible" (@Star Strider). But in all the responses I saw in the forum, the transfer function was already available.
How do I get the the transfer function from a non laplacian function?
The faulty code:
syms t
k = 3
T2 = 10
c = 2
time_vector = [1:1:50];
y =@(t) k*(1.-exp(-t/T2))*c
laplace(y)
results = y(time_vector);
laplace(y)
Error: Check for missing argument or incorrect argument data type in call to function 'laplace'.
0 Commenti
Risposte (1)
Walter Roberson
il 1 Feb 2021
syms s t
k = 3
T2 = 10
c = 2
time_vector = [1:1:50];
y = @(t) k*(1.-exp(-t/T2))*c
Y = laplace(y(t), t, s)
[n, d] = numden(Y)
yTF = tf(sym2poly(n), sym2poly(d))
step(yTF, time_vector)
4 Commenti
Vedere anche
Categorie
Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!