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!


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

thankyou! that was of great help.

Log in to comment.

1 Answer

Answer by Image Analyst
on 26 May 2013


Log in to comment.

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!