MATLAB: Noisy bode plot data bodecurvefitfrequencynoisyplotresponse Hi, i have some pretty noisy bode plot data that i would like to do a curve fitting on. Does anyone know if matlab has some built in frequency response curve fitting functions? Thank you Best Answer There isnt anything designed for smoothing frequency response curves specifically. Try using the SMOOTH function or other smoothing functions in the Curve Fitting Toolbox.If you dont have the Curve Fitting Toolbox, you could design your own moving average filter.For more fine tuning of the data, you can try using some of these Frequency Response Data Models. Related SolutionsMATLAB: Weighted least square fit Yes. There is LSCOV. MATLAB: Bode Diagram You need to use bodeoptions command and set PhaseWrapping to on. Here is an example showing how to do it:>>s=tf('s'); %define Laplace variable>>freq=logspace(-1,2,1000); %define frequency vector>>sys=1/(s^3+2*s^2+3*s+1); %some tf with phase <-180>>bode(sys,freq) %phase is not within -180:180>>p=bodeoptions>>p.PhaseWrapping='on'>>bode(sys,freq,p) %phase is wrapped inside -180:180HTH, Arkadiy Related QuestionBode() magnitude
Best Answer