How to obtain Transfer Function from Scope Data?

8 views (last 30 days)
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?

Accepted Answer

Sebastian Castro
Sebastian Castro on 31 Mar 2015
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 Comment
meghana madhusudhan
meghana madhusudhan on 8 Apr 2015
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.

Sign in to comment.

More Answers (1)

meghana madhusudhan
meghana madhusudhan on 8 Apr 2015
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.

Community Treasure Hunt

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

Start Hunting!