Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Create a function helps to find the path
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I want a create a recursive function for that I wrote one algorithm to calculate the path like
- function( int i , int j)
- if (i is rechable to out)
- root(i) = out;
- return i;
- else
- x = ((distance(i,j)<30)&&(max(distance(i,j)))&&(min(dist1(j)));
- root(i)= x(j);
- function(x,i+1);
- end
here i =13 nodes, j=50 nodes,out= destination
have to find out the least path
please somebody help me to solve it.
1 comentario
Geoff Hayes
el 28 de En. de 2019
Sushree - what have you tried so far? How do you determine if i is reachable to out? SeeMATLAB function for details on how to define a function.
Respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!