function [m]=my_createtoynetwork(networksize) flag_randomconnections=0; %create weights matrix if flag_randomconnections==1 connections_random=rand(networksize,networksize); else connections=zeros(networksize,networksize); x=.95; connections(1,2)=x; connections(1,5)=x; connections(3,8)=x; connections(5,9)=x; connections(6,4)=x; connections(6,8)=x; connections(7,2)=x; connections(7,3)=x; connections(7,6)=x; connections(8,9)=x; connections(9,8)=x; end [m]=connections;