(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

Hi, I am a second year University student in the UK. I am trying to plan my labs and as part of this am trying to work out how I use MATLAB to do some curve fitting. What I wish to do is to get some points and for matlab to find me an equation of this curve to a reasonable degree of accuracy. I then need to square this function and finally to integrate it over some limits.

However I have looked up how to do this in a couple of books in my university library and have so far been unable to complete even the first part of this task. In the books which I found on this I am told to use the 'Basic Fitting' function. However the version of matlab which I have only has the Curve fitting tool, which does not appear to give me an equation but merely draws a pretty line for me, after around three hours of playing around this is getting somewhat tiresome.

Note - the sample data which I have been trying to use can be downloaded from: http://www.nottingham.ac.uk/~ppzwm/downloadsindex.htm [Broken] and clicking on the g_of_f.mat link under the Johnson Noise heading. I need to generate the function of g(f). However I would rather that you told me how to do this rather than just providing me with the answer as I have to do this again independently.

Thanks

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: Matlab curvefitting query?

**Physics Forums | Science Articles, Homework Help, Discussion**