how can I fit a curve in bode digram?

31 views (last 30 days)
navin haghighizadeh
navin haghighizadeh on 3 Jul 2013
Hello,
I want to fit a curve using lsqcurvefit from a bode diagram of a transfer function. I do not have x data and y-data but only the transfer function. how can I find x-data and find y-data from a bode diagram?
or is there any other ways to find a fir curve from a transfer function?

Answers (2)

Shashank Prasanna
Shashank Prasanna on 4 Jul 2013
if you have the transfer function then all you need to do to get the curve is call the bode function:
How do you have the bode figure? is it a matlab figure? If so then you can extract the values from the figure.
What are you trying to fit to the curve?
  1 Comment
Shashank Prasanna
Shashank Prasanna on 4 Jul 2013
I think there are better ways to do what you are tying to do. A commonly used method is balanced order reduction where you can specify the lowest order you want to represent your system:
Is you have Simulink Design Optimization toolbox then there are graphical ways to do what you are tying to do:

Sign in to comment.


navin haghighizadeh
navin haghighizadeh on 4 Jul 2013
I am trying to fit the curve with reduced kind transfer function. the original transfer function has 10 poles and 10 zeros. I found the x-data and y-data but I cannot use lsqcurvefit.
  1 Comment
Shashank Prasanna
Shashank Prasanna on 4 Jul 2013
Please see my comment above. If you'd like to respond to my answer or comment, please do so right below it instead of creating a new answer. This will make the answer hard to track for others who have the same question as yours.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!