MATLAB Answers


Label correcting algorithm for shortest path

Asked by jana
on 26 May 2013

Can any body provide a code for label correcting algorithm for shortest path. Thankyou!


on 27 May 2013

Regarding the second question: Yes I still need to find the shortest path.

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
on 28 May 2013

thankyou! that was of great help.

1 Answer

Answer by Image Analyst
on 26 May 2013


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!