Label correcting algorithm for shortest path

2 vues (au cours des 30 derniers jours)
jana
jana le 26 Mai 2013
Can any body provide a code for label correcting algorithm for shortest path. Thankyou!
  6 commentaires
Walter Roberson
Walter Roberson le 27 Mai 2013
LIST = [1]; %initialize
...
i = LIST(1); %take out element
LIST(1) = [];
...
if ~ismember(j, LIST); LIST(end+1) = j; end %add j if it is not there
jana
jana le 28 Mai 2013
thankyou! that was of great help.

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 26 Mai 2013

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by