From: Amina on 1 Jun 2010 07:50 Hi I have a very simple/naive question. I am using a code(written below) to calculate the shortest paths between two network nodes. for i = 1: length(path) fprintf('Path # %d:\n',i); disp(path{i}) fprintf('dist of path %d is %d\n\n',i,dist(i)); end I get the paths along with their costs: Path # 1: 1 2 cost of path 1 is 10 Path # 2: 1 4 5 2 cost of path 2 is 30 After getting the paths and their cost i want to assign Path #1 and Path #2 to a new variable lets say newp. for g = 1:2 newp = (Path(g)); end But i always get the error. Can anyone please help me.
|
Pages: 1 Prev: Student version (win32) memory on Win7 x64 Next: roundoff in version 7.7.0 |