% recapitulate example 3
A = floor(1.01*rand(100,100)); A=A+A'; A(A>0) = 1;
B = floor(1.02*rand(100,100)); B=B+B'; B(B>0) = 1;
nets(:,:,1) = A;
nets(:,:,2) = B;
% recampitulate example 2
for i=1:size(A,1)
nodeNames{i} = ['node number ' num2str(i-1)];
end
% recapitulate example 5
netNames{1} = 'robotNetwork';
netNames{2} = 'humanNetwork';
% call webweb
webweb(nets,nodeNames,netNames);
% Note: this order also works
% webweb(nets,netNames,nodeNames);