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

values_button_move_script.m
if ((dimension==1) & (0<currentgraphx) & (currentgraphx<=columnsshown) & (1<=currentgraphy) & (currentgraphy<=rows) & (currenty>=1))...
        | ((dimension==2) & (0<currentgraphx) & (currentgraphx<=columnsshown) & (0<currentgraphy) & (currentgraphy<=rowsshown));
    clear valuesdisplay;
    if cellvaluemouseover==1;
        if dimension==1; valuesdisplaycell=['Cell: ',num2str(a(currenty, currentx)),'[',num2str(currenty-1),',',num2str(currentx),'].   '];
        elseif dimension==2; valuesdisplaycell=['Cell: ',num2str(a(currenty, currentx, currentiteration + 1)),'[',num2str(currenty),',',num2str(currentx),',',num2str(currentiteration),'].   ']; end;
        valuesdisplay={valuesdisplaycell};
    end;
    
    if selectionvaluemouseover==1;
        if currentlyselecting==1;
            valuesdisplayselection=['Selection ', aselectionstructurenumberstring, ' at ',selectioncoordinates,'.   '];
            if exist('valuesdisplay'); 
                valuesdisplay(end+1)={valuesdisplayselection};
                %valuesdisplay=cat(2,valuesdisplay,valuesdisplayselection);
            else; valuesdisplay=valuesdisplayselection; end;
        end;
    end;
    
    if bytevaluemouseover==1;
        byte_selection;
        if exist('byteselection');
            valuesdisplaybyte=['Byte ', byteselectionstructurenumberstring, ' at ',bytecoordinates];
            if exist('valuesdisplay'); 
                valuesdisplay(end+1)={valuesdisplaybyte};
                %One after the other configuration below
                %valuesdisplay=cat(2,valuesdisplay,valuesdisplaybyte);
            else; valuesdisplay=valuesdisplaybyte; end;
            CA_Display;
        end;
    end;
    set(findobj('Tag','box1'), 'string', valuesdisplay);
end;

Contact us at files@mathworks.com