[code]total=numel(Graph(:,1));
path=zeros(1,total);
paths=cell(total);
for i=1:total
for j=1:total
if(path(index)==Graph(j,2))
if(ismember(Graph(j,1),S)==true)
index=index+1;
path(index)=Graph(j,1);
count=count+1;
end
end
lengths(jj)=count;
end
for kk=1:numel(path)
paths(i,kk)={path(kk)};
end
end[/code]
JLCPCB – Prototype 10 PCBs for $2 (For Any Color)
China’s Largest PCB Prototype Enterprise, 600,000+ Customers & 10,000+ Online Orders Daily
How to Get PCB Cash Coupon from JLCPCB: https://bit.ly/2GMCH9w