Finding the Trasfer Function !

조회 수: 4 (최근 30일)
Amir
Amir 2012년 2월 13일
There friends,
I have input and output signals of a biological system and it is needed to estimate its Transfer Function. Then the Transfer Function could be used for producing new signals.
So, I have used the "tfestimate" command in MATLAB and the estimated result has been used in "yulewalk" command for designing a filter. The filter suppose to works similar to our biological system. For finding that this system is working properly or not, I tested it with the same input's data but the output was not similar to the biological output that I have.
I have copied the code below. It will be my pleasure to have your idea about it or any new idea for estimating the transfer function.
%-------------------------------------
[TF_Magn_rs_rr,TF_Freq_rs_rr]=tfestimate(rs,rr,[],[],2048,1/Ts);
max_freq=max(TF_Freq_rs_rr); max_magn=max(TF_Magn_rs_rr);
% For yulewalk, the frequency should be between 0 and 1. So frequency is divided by MAX of frequency and the same for magnitude.
[b,a]=yulewalk(10,TF_Freq_rs_rr./max_freq,TF_Magn_rs_rr./max_magn);
rr_new=filter(b,a,rs);
%-------------------------------------

답변 (1개)

Rajiv Singh
Rajiv Singh 2012년 6월 7일
If you have System Identification Toolbox, you could try directly estimating the transfer function (b/a) using input/output data; see:

카테고리

Help CenterFile Exchange에서 Linear Model Identification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by