Rank: 1436 based on 211 downloads (last 30 days) and 1 file submitted
photo

Rohit

E-mail
Company/University
Texas A&M University

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Rohit
Updated   File Tags Downloads
(last 30 days)
Comments Rating
19 Nov 2008 Screenshot Minimum Distance loop between 'n' number of points This functions finds minimum distance loop between no.of points using the distance formula. Author: Rohit point, distance, measurement 211 2
  • 1.5
1.5 | 2 ratings
Comments and Ratings on Rohit's Files View all
Updated File Comment by Comments Rating
12 Nov 2008 Minimum Distance loop between 'n' number of points This functions finds minimum distance loop between no.of points using the distance formula. Author: Rohit D'Errico, John This is a script that will clear your matlab workspace, crapping on anything that you might have been working on before. It generates its own set of points, so it does nothing for the user. There is no help, no error checking (since you supply nothing, no reason to check for errors. Also no reason to bother with this code in the first place by that logic. Looking at the code, it is a "greedy" algorithm, i.e., a simplistic algorithm that tries to solve the problem by a too simple method. This does not actually produce the minimum distance circuit around the set of points in general. In fact, it will almost certainly not produce the optimal solution for point sets of any size. The code itself is also simplistic, computing distances with a double loop, when no loop is necessary at all. Worse, if you insist on the use of loops here, why compute the distances twice, when the matrix must be symmetric? And finally, a construct like if i==j%||j
12 Nov 2008 Minimum Distance loop between 'n' number of points This functions finds minimum distance loop between no.of points using the distance formula. Author: Rohit Schwanghart, Wolfgang This is a script and not a function! Make it a function and let the user provide the coordinates of the points. Moreover, the code is not very well coded. You could avoid some of the nested loops by a simply involving bsxfun. You should also have a look at the Traveling Salesman algorithm http://www.mathworks.com/matlabcentral/fileexchange/13680 which does what you probably want to do. I like that there are quite many comments in the code, which make it really easy to follow. Hence, I rate it a two.
Top Tags Applied by Rohit
measurement
Files Tagged by Rohit
Updated   File Tags Downloads
(last 30 days)
Comments Rating
19 Nov 2008 Screenshot Minimum Distance loop between 'n' number of points This functions finds minimum distance loop between no.of points using the distance formula. Author: Rohit point, distance, measurement 211 2
  • 1.5
1.5 | 2 ratings

Public Submission Policy

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 Disclaimer prior to use.

Contact us at files@mathworks.com