function []=my_graph_connections(connectionsfound) %creates graph of connections networksize=length(connectionsfound); s=0; scatterX=zeros(networksize^2,1); scatterY=zeros(networksize^2,1); scatterS=zeros(networksize^2,1); scatterC=zeros(networksize^2,3); colorscaling=max(max(imag(connectionsfound)))-min(min(imag(connectionsfound)))+.001; for i=1:networksize for j=1:networksize s=s+1; scatterX(s,1)=j; scatterY(s,1)=i; scatterS(s,1)=real(connectionsfound(i,j))/max(max(real(connectionsfound)))*100+.001; scatterC(s,:)=[(imag(connectionsfound(i,j))-min(min(imag(connectionsfound))))/colorscaling 0 0]; end end scatter(scatterX,scatterY,scatterS, scatterC, 'filled'); xlabel('Receiving Node'); ylabel('Sending Node'); title('Nodal Connections (Circle Area Displays Strength of Connection between Nodes)','fontsize',12,'fontweight','bold'); axis([0 (networksize+1) 0 (networksize+1)]); grid on;