How to obtain Transfer Function from Scope Data?

I have a scope data of gyro output for a range of frequency (0.5Hz-20Hz) obtained using system identification toolbox. I want to obtain a transfer function for the gyro output. Should I generate a bode plot for the data to obtain the transfer function? Am i supposed to use the idfrd function to obtain bode plot?

 채택된 답변

Sebastian Castro
Sebastian Castro 2015년 3월 31일

0 개 추천

The idfrd function is a start, as that will package up your collected data into an "experiment" of frequency vs. complex response data.
The next step would be to estimate the transfer function using that data, with functions like tfest.
Here is the general documentation page for all things transfer function in System ID Toolbox.
- Sebastian

댓글 수: 1

thank you sebastian.
I tried the following code and obtained a transfer function for my scope data.
tfdata=iddata(input,output,t); N=2; sys=tfest(tfdata,N); bodeplot(sys)
the numerator of my transfer function is a negative number. does it make sense?
I need to use the obtained transfer function to design a PID controller.

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

추가 답변 (1개)

meghana madhusudhan
meghana madhusudhan 2015년 4월 8일

0 개 추천

thank you sebastian.
I tried the following code and obtained a transfer function for my scope data.
tfdata=iddata(input,output,t); N=2; sys=tfest(tfdata,N); bodeplot(sys)
the numerator of my transfer function is a negative number. does it make sense?
I need to use the obtained transfer function to design a PID controller.

카테고리

도움말 센터File Exchange에서 Time and Frequency Domain Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by