Label correcting algorithm for shortest path

2 visualizzazioni (ultimi 30 giorni)
jana
jana il 26 Mag 2013
Can any body provide a code for label correcting algorithm for shortest path. Thankyou!
  6 Commenti
Walter Roberson
Walter Roberson il 27 Mag 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 il 28 Mag 2013
thankyou! that was of great help.

Accedi per commentare.

Risposte (1)

Image Analyst
Image Analyst il 26 Mag 2013

Community Treasure Hunt

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

Start Hunting!

Translated by