필터 지우기
필터 지우기

Laplace from symbolic to tf tooling.

조회 수: 2 (최근 30일)
am
am 2021년 2월 1일
댓글: am 2021년 2월 1일
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'.

답변 (1개)

Walter Roberson
Walter Roberson 2021년 2월 1일
syms s t
k = 3
k = 3
T2 = 10
T2 = 10
c = 2
c = 2
time_vector = [1:1:50];
y = @(t) k*(1.-exp(-t/T2))*c
y = function_handle with value:
@(t)k*(1. -exp(-t/T2))*c
Y = laplace(y(t), t, s)
Y = 
[n, d] = numden(Y)
n = 
6
d = 
yTF = tf(sym2poly(n), sym2poly(d))
yTF = 6 ---------- 10 s^2 + s Continuous-time transfer function.
step(yTF, time_vector)
  댓글 수: 4
am
am 2021년 2월 1일
편집: am 2021년 2월 1일
Thank you, I missed you just needed to install it.
I want to see the stepinfo(), the raise time, settling time etc.
Now I do not have errors, I do have a plot but no step responses. How can I visualise the stepinfo()?
syms s t
k = 3
T2 = 10
c = 2
time_vector = [1:1:50];
y = @(t) k*(1.-exp(-t/T2))*c
results = y(time_vector);
plot(time_vector,results)
hold on
grid on
xlabel('Time')
ylabel('Temperature')
Y = laplace(y(t),t, s)
[n,d] = numden(Y)
yTF = tf(sym2poly(n), sym2poly(d))
stepinfo(yTF)
am
am 2021년 2월 1일
Sorry to recomment, but I am unsure you get a pling if one simply edits :).
How can I visualise the stepinfo() please?

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by