Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Curve fitting using Matlab

  1. Feb 11, 2008 #1

    I am trying to do a curve fitting for a waveform obtained from the division of 2 FFT data. So, I used invfreqz in Matlab so that I can obtain the transfer function of the waveform, and at the same time, find an estimated waveform for the curve obtained. However, I cant seem to do it using this method, even though I had used the varience as the wt of the invfreqz. May I know does anyone knows what went wrong? Really appreaciate any help given. Thanks.

    ff = f1(1:(k));
    f_norm = ff / f1(k)*pi;
    [num,den]=invfreqz(tf1(1:k), f_norm,3,4,wt)
    [h2,w2] = freqz(num,den,k);
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted