Code covered by the BSD License  

Highlights from
PathFinding

Be the first to rate this file! 17 Downloads (last 30 days) File Size: 57.6 KB File ID: #34966
image thumbnail

PathFinding

by Wasit Limprasert

 

07 Feb 2012

Dijkstra's pathfinding algorithm: computing a shortest path between an initial node to a final node.

| Watch this File

File Information
Description

%% Pathfinding
% An example how to use class Graph.
% Usage:
% g=Graph(map);
% Constructor, where map is 2D matrix of mobility map.
%
% ShowPath(g,map,shortpathv);
% Displaying where shortpathv is list of nodes on shortest path.
%
% [shortpathv g]=GetPath(g,initv,finalv); Computing the shortest path
% between init_node and final_node.

Required Products MATLAB
MATLAB release MATLAB 7.12 (R2011a)
Tags for This File  
Everyone's Tags
oop, optimization, pathfinding
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
29 Feb 2012 raman makhaik

i get error in this code ..... i.e.
??? Maximum recursion limit of 500 reached. Use set(0,'RecursionLimit',N)
to change the limit. Be aware that exceeding your available stack space can
crash MATLAB and/or your computer.

Error in ==> Node..

any solution please reply..??

07 Feb 2012 Wasit Limprasert

Please feel free to comment:)

Contact us