ruta mas corta dijkstra
Publicado por Emmanuel (1 intervención) el 27/08/2012 21:38:13
hola el algoritmo de dijkstra en MATLAB me pide los siguientes datos de entrada
Inputs:
% NODES should be an Nx3 or Nx4 matrix with the format [ID X Y] or [ID X Y Z]
% where ID is an integer, and X, Y, Z are cartesian position coordinates)
% SEGMENTS should be an Mx3 matrix with the format [ID N1 N2]
% where ID is an integer, and N1, N2 correspond to node IDs from NODES list
% such that there is an [undirected] edge/segment between node N1 and node N2
% SID should be an integer in the node ID list corresponding with the starting node
% FID (optional) should be an integer in the node ID list corresponding with the finish
la primer matriz yo la pude crear, pero es la segunda la que no he podido ser capaz de realizar.
espero sus comentarios.
Saludos!!!
Inputs:
% NODES should be an Nx3 or Nx4 matrix with the format [ID X Y] or [ID X Y Z]
% where ID is an integer, and X, Y, Z are cartesian position coordinates)
% SEGMENTS should be an Mx3 matrix with the format [ID N1 N2]
% where ID is an integer, and N1, N2 correspond to node IDs from NODES list
% such that there is an [undirected] edge/segment between node N1 and node N2
% SID should be an integer in the node ID list corresponding with the starting node
% FID (optional) should be an integer in the node ID list corresponding with the finish
la primer matriz yo la pude crear, pero es la segunda la que no he podido ser capaz de realizar.
espero sus comentarios.
Saludos!!!
Valora esta pregunta


0