Fractional order transfer function

조회 수: 27 (최근 30일)
Abdelkarim Jabrane
Abdelkarim Jabrane 2019년 12월 13일
댓글: Walter Roberson 2020년 1월 3일
I tried to write a matlab script for the computation of this transfer function but I keep receving an error message saying that the exponent must a scalar integer.
How can I overcome this issue?
Thank you in advance.
  댓글 수: 4
Jakob B. Nielsen
Jakob B. Nielsen 2019년 12월 13일
편집: Jakob B. Nielsen 2019년 12월 13일
That is odd. It runs just fine for me, and looking at it it shouldnt give an error...
However, you do make a mistake in the evaluation so lets take that; the transfer function is one divided by your sum. Your function is the sum of one divided by each individual component. I think you are looking for this;
v=20;
a=5;
s=2;
clear denom
denom=0;
for k=1:v
denom=denom+((s/a)^((k-1)/v));
end
C=1/denom;
Abdelkarim Jabrane
Abdelkarim Jabrane 2019년 12월 13일
편집: Abdelkarim Jabrane 2019년 12월 13일
Sorry I missed to paste the definition of s as Laplace transform operator. C(s) is a transfer function in continuos time domain.
Thank you very much for the correction, I appreciate it.
s=tf('s');
v=20;
a=5;
denom=0;
for k=1:v
denom=denom+((s/a)^((k-1)/v));
end
C=1/denom;
In this way it will show an error message.

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

답변 (1개)

Jyothis Gireesh
Jyothis Gireesh 2020년 1월 2일
A possible workaround to this scenario may to be define the transfer function using symbolic variables. You may use the following code to implement the same.
syms s k;
v = 20;
a = 5;
C = 1/symsum((s/a)^((k-1)/v),k,1,v);
The above symbolic function can be provided as input to “ilaplace ()” to get the time-domain representation of the same. However do note that due to the presence of fractional order terms in the denominator, the final result may be a piecewise approximation of the function.
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 1월 3일
The piecewise() approximation is more to avoid a singularity than because of fractional order terms.

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

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by