dpb
Posts:
9,220
Registered:
6/7/07


Re: data extraction from matrix to use in another matrix
Posted:
Oct 22, 2013 4:57 PM


On 10/22/2013 12:33 PM, dpb wrote: > On 10/22/2013 12:24 PM, walter Mulvany wrote: >> I tried running it as you typed it and it gives me this error >> >> ?? Subscripted assignment dimension mismatch. >> >> Error in ==> trial at 13 >> M(i,:)=[conn(i,:) Node(conn(i,2),2:end) Node(conn(i,3),3:end)]; >> >> This is what I tried to run.. >> > ... > >> M=zeros(length(conn),4); > ... >
ADDENDUM:
>> M(i,:)=[conn(i,:) Node(conn(i,2),2:end) Node(conn(i,3),3:end)];
Should be
M(i,:)=[conn(i,:) Node(conn(i,2),2:end) Node(conn(i,3),2:end)];


