Code covered by the BSD License  

Highlights from
Digital Karma: State Graphing

image thumbnail
from Digital Karma: State Graphing by Aman Siddiqi
Evolutionary Simulation, Interaction Graph

mouse_location.m
lastclicktype=get(gcf,'selectiontype');
computeiterations;
clickedpoint=get(gca,'currentpoint');
currentx=round(clickedpoint(1,1))+firstcolumn-1;
currentgraphx=round(clickedpoint(1,1));
currentgraphy=(round(clickedpoint(1,2)));
if dimension==1;
    currenty=(round(clickedpoint(1,2))-rows+currentiteration+1);
    currentlayer=1;
elseif dimension==2;
    currenty=round(clickedpoint(1,2))+firstrow-1;
    currentlayer=currentiteration+1;
end;

Contact us at files@mathworks.com