find all possible paths between 2 nodes using recursion in matlab
1 view (last 30 days)
hi,i m trying to find all possible paths using recursion in matlab. the code for recurssion is as follows:
all paths = ;
for v=1:maxnodes; //for all the neighbours of source node
but here the recursion is not working properly.
can anybody help me?
Jan on 29 Dec 2011
Do not use the term path for a variable, because this shadows a very important Matlab function.
The number of square brackets in the 1st line is unbalanced.
I assume you want "allpaths = ;" instead of "all paths = ;". Spaces do matter in Matlab.