Information Technology Reference
In-Depth Information
The file id2t.m which calculates the transition points was presented in Sect. 3..
Other files called by the program are the sworld1.m to initialie a fraction of ran-
dom cells where the local connectivity is replaced with long range connectivity
and sworld2.m to effectively implement the connectivity within the main loop:
% sworld1.m
% sworld2.m
for p=1:nloc
temp=x0(i_loc(1,p),j_loc(1,p));
% generate a list of random locations
% for the Small World model
nloc=round(f*m*n);
i_loc=round(1+(m-1)*rand(2,nloc));
j_loc=round(1+(n-1)*rand(2,nloc));
x0(i_loc(1,p),j_loc(1,p))=x0(i_loc(2,p),j_loc
(2,p));
x0(i_loc(2,p),j_loc(2,p))=temp;
end
Search WWH ::




Custom Search