Label correcting algorithm for shortest path

2 Ansichten (letzte 30 Tage)
jana
jana am 26 Mai 2013
Can any body provide a code for label correcting algorithm for shortest path. Thankyou!
  6 Kommentare
Walter Roberson
Walter Roberson am 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 am 28 Mai 2013
thankyou! that was of great help.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
Image Analyst am 26 Mai 2013

Community Treasure Hunt

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

Start Hunting!

Translated by