1.0

1.0 | 1 rating Rate this file 56 downloads (last 30 days) File Size: 2.84 KB File ID: #20442

Straight-line fitting genetic algorithm

by Evaristo Rojas Mayoral

 

25 Jun 2008 (Updated 02 Jul 2008)

No BSD License  

It uses a genetic algorithm for straight-line fitting.

Download Now | 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
straightline Evaristo Rojas Mayoral 22 Oct 2008 10:07:26
fitting Evaristo Rojas Mayoral 22 Oct 2008 10:07:26
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com