f(t) = 
Searching for Transferfunction between two functions
이전 댓글 표시
Hello,
the problem is as follows:
I have two functions (F1 and F2 both dependent on the time) from a data fit and I am searching for a transfer function (TF) that fulfills the following equation.
F2=F1*TF
TF should be given by an equation where two variables needs to be changed. The script has to change the variables to minimize the sum of squares errors between the original function F2 and the analytical result of F1*TF (which should be as close to F2 as possible).
R^2=(F2-F1*TF)^2 =!= min
I am open for any suggestions.
Thanks in advance

답변 (1개)
Use the System Identification Toolbox.
The actual transfer function is probably a simple delay term or that includes one, for example
or something similar, if both functions are essentially the same otherwise.
To illustrate —
syms k s t
f(t) = t*exp(-k*t)
F(s) = laplace(f,t,s)
clear k s t
s = tf('s');
HT = exp(-60*s);
figure
stepplot(HT)
grid
k1 = 0.1;
H1 = 0.01/(k1+s)^2
H2 = H1*HT
figure
impulseplot(H1)
hold on
impulseplot(H2)
hold off
grid
xlim([0 300])
This approximates your posted plot.
.
댓글 수: 2
User0815
2024년 5월 8일
Star Strider
2024년 5월 8일
It actually is, if you consider it to be such. You don’t have to specifically model it as a Laplace transformation. The System Identification Toolbox will model it that way.
If you use the System Identification Toolbox (available here even if you don’t have it licensed and installed on your computer), you can model each of the exponentioal impulse responses (it works best if you also have the inputs to the system) and then divide the later one by the earlier one to get the delay term, that will likely be the sort of exponential I described in my example. The exponential delay term seems to be what you’re looking for.
카테고리
도움말 센터 및 File Exchange에서 Linear Model Identification에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

