Code covered by the BSD License  

Highlights from
Least square curve fit with out differentiation(Gramdeterminant method)

1.0

1.0 | 1 rating Rate this file 2 Downloads (last 30 days) File Size: 2.59 KB File ID: #26085

Least square curve fit with out differentiation(Gramdeterminant method)

by Mathan Chandran

 

13 Dec 2009

Give the basis functions and get the desired curve.

| Watch this File

File Information
Description

            Curdat.m is a data file. You can change to get your
                    need.
            Polycurve.m is polynomial basis file.
            Graf.m is the user’s basis file. You can change to
                    match your choice.
            Curfit.m Gives the polynomial curve and the graph.
            Gramplot.m gives the curve for selected basis.
           
            Example ;
                    Gramplot() gives the result. Deviations and
                    locations are included.
                    Curfit(4) gives the result.

           Least square curve fit is the principle. In the formulation,
           differentiation is avoided. Instead,an inner-product is
           designed and Gram-matrix is created. The curve F is
   
                    F = ∑ ai fi ; i = 1..n
                    
                    ai are the parameters
                    fi are the basis functions
            

Required Products Symbolic Math Toolbox
MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
14 Dec 2009 John D'Errico

Sigh. 5 different functions, absolutely no help. All to do something amazingly simple (i.e., something that should take essentially ONE line in matlab.) Lots of loops. Uses the matrix inverse, instead of backslash. A hard coded model, so you need to edit this to change the model, IF you can find where to put it.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data exploration Mathan Chandran 14 Dec 2009 09:58:16

Contact us at files@mathworks.com