No BSD License  

Highlights from
Straight-line fitting genetic algorithm

1.0

1.0 | 1 rating Rate this file 2 Downloads (last 30 days) File Size: 2.84 KB File ID: #20442
image thumbnail

Straight-line fitting genetic algorithm

by Evaristo Rojas Mayoral

 

25 Jun 2008 (Updated 02 Jul 2008)

It uses a genetic algorithm for straight-line fitting.

| Watch this File

File Information
Description

[M,B] = AG_RECTA(X,Y) finds the the slope M and the y-intercept B of the line that better fits to the X,Y data. X and Y are vectors of the same length.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Genetic Algorithms Application

MATLAB release MATLAB 7.0.4 (R14SP2)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
26 Jun 2008 Jos x@y.z

Beware, this is a script which seriously affects your matlab workspace and may interfere with your work ...
Also the author did not bother to provide english help.

02 Jul 2008 Evaristo Rojas Mayoral

It's a function now, so it doesn't affect your Matlab workspace.

07 Jul 2008 Jos x@y.z

The author has fixed the function/script problem. Next, the author should provide help and comments in English. This looks like an alternative to polyfit, so the author should try to make very clear why this is useful or what others can learn from it.

Please login to add a comment or rating.
Updates
02 Jul 2008

It's a function now, so it doesn't affect your Matlab workspace.

Tag Activity for this File
Tag Applied By Date/Time
optimization Evaristo Rojas Mayoral 22 Oct 2008 10:07:26
genetic algorithm Evaristo Rojas Mayoral 22 Oct 2008 10:07:26
fitting Evaristo Rojas Mayoral 22 Oct 2008 10:07:26
straightline Evaristo Rojas Mayoral 22 Oct 2008 10:07:26
fitting Basim Kakakhel 07 Nov 2010 19:20:05

Contact us at files@mathworks.com