How to solve a trasfer function absolute value whit the tf function command.
이전 댓글 표시
I'm tryng to implement a control system method in matlab but I have a problem in plotting a curve so I don't find a solution to compute the absolute value of a tranfer function declared with the classical command "tf". The function "abs()" is not useful so I ask you which the way to solve the problem. Thank you so much.
댓글 수: 5
Azzi Abdelmalek
2013년 8월 20일
편집: Azzi Abdelmalek
2013년 8월 20일
what does mean: a trasfer function absolute value
Graz Mand
2013년 8월 20일
Azzi Abdelmalek
2013년 8월 20일
Ok, but what does that mean mathematically ?
Graz Mand
2013년 8월 20일
Graz Mand
2013년 8월 20일
답변 (2개)
Azzi Abdelmalek
2013년 8월 20일
Example
N=1;
D=[1 10]
model=tf(N,D) % your transfer function
Now what do you mean by: An absolute value of a transfer function
댓글 수: 7
Azzi Abdelmalek
2013년 8월 20일
편집: Azzi Abdelmalek
2013년 8월 20일
If you want to plot the abs of your transfer function
p=0:0.1:10;
tf1=1./(p+10)
tf1a=abs(tf1)
plot(p,tf1)
%or for example
N=[1 2]
D=[1 2 3]
p=0:0.1:10
f=abs(polyval(N,p)./polyval(D,p))
plot(p,f)
Graz Mand
2013년 8월 20일
Azzi Abdelmalek
2013년 8월 20일
I don't know exactly what you want, but in the above case, by replacing p by jw you will get a frequency response. You can do it like this
N=[1 2];
D=[1 2 3];
w=-10:0.01:10;
p=w*j;
f=abs(polyval(N,p)./polyval(D,p));
plot(w,f)
Graz Mand
2013년 8월 20일
편집: Azzi Abdelmalek
2013년 8월 20일
Graz Mand
2013년 8월 20일
Azzi Abdelmalek
2013년 8월 20일
편집: Azzi Abdelmalek
2013년 8월 20일
It's not f=P1/(1-P1) but
f=P1./(1-P1)
plot(w,f)
Negin Abaeian
2015년 12월 12일
0 개 추천
Hey Graz.
I can see the post belongs to long ago. But did you ever find the answer to this question? I'm trying to plot the exact same transfer function for an Audio application.
카테고리
도움말 센터 및 File Exchange에서 Special Values에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!