cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Question of returning the correct bandwidth information of a bode plot

yhuang-3
1-Newbie

Question of returning the correct bandwidth information of a bode plot

Hi all, I have a nonlinear function whose bode plot have multiple crossing of the 0dB line. I want to return the first zero crossing point from the bode plot as the bandwidth information, would anyone help me about this? The method I used to do only works for the function with only one zero crossing point. But it get some problems in this multiple-zero-crossing cases. Thank you!

BW_CALCULATION.JPG

1 ACCEPTED SOLUTION

Accepted Solutions

Your method fails as normally no value in your data set would be exact zero and match takes the one closest to zero (within a tolerance) and you would have really luck if this should be near the forst zero crossing.

So one one could be to use Match (note the capital M) from the Data Analysis Extrension pack to look for values near zero, (I have chosen the interval from 0 to 1.5) and take the first one found. Of course you would need to know how much off zero the first position is approx.

Another approach which gives you all zero crossings is here

and of course you can't really get ALL zero crossings if tha data set is too coarse:

P.S.: I also assume that you just have a set of data points and no function to play with.

View solution in original post

10 REPLIES 10

Try this:

Thank you Fred, this method works when I have high enough points. In my real function (not the simplified function in this thread), the number was 150 (the same as this thread) and I was not able to get the correct results by using your method. When I increased the number to 500, I can get the correct results.

Would you briefly explain your method? Thank you!

The vector bw is the gain calculation without the absolute value.  The vector dx is the corresponding values to the elements in bw,

The function augment puts the two together side by side in a two column array.  The command csort arranges this array in ascending order of the "bw" column (column index 1).  Your bandwidth limit is then the frequency of the index corresponding to the lowest gain.

RichardJ
19-Tanzanite
(To:yhuang-3)

This is more accurate than just looking for the nearest point:

RichardJ
19-Tanzanite
(To:RichardJ)

I should add that I am assuming your function F(s) is not known, and you only have data at certain points. If F(s) is known, you obviously don't need spline interpolation to turn the data into a function, because you already have a function. Just feed Gain(F(s)) into the solve block.

Hi,

The bandwidth of a linear system is given by the frequency for which the gain (in dB) is attenuated by 3dB (the logarithm (ten base) of the root of two). The gain (in dB) is zero at the cross-over frequency.

Your method fails as normally no value in your data set would be exact zero and match takes the one closest to zero (within a tolerance) and you would have really luck if this should be near the forst zero crossing.

So one one could be to use Match (note the capital M) from the Data Analysis Extrension pack to look for values near zero, (I have chosen the interval from 0 to 1.5) and take the first one found. Of course you would need to know how much off zero the first position is approx.

Another approach which gives you all zero crossings is here

and of course you can't really get ALL zero crossings if tha data set is too coarse:

P.S.: I also assume that you just have a set of data points and no function to play with.

-MFra-
21-Topaz II
(To:yhuang-3)

Bode plots example 0.jpg

LucMeekes
23-Emerald III
(To:yhuang-3)

With reference to Re: Optimization of bandwidth and phase margin of a transfer function.

Set :

Then the (-3 dB) bandwidth is

and the unity-gain frequency is:

that is, just a little over 234 kHz.

Luc

LucMeekes
23-Emerald III
(To:LucMeekes)

Oh, and the gain characteristic is:

You don't want to see the phase characteristic.

Success!
Luc

Top Tags