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

save_rule_colors.m
savingpath=uigetdir;
timenow=num2str(datestr(now,30));
current_time_date = ['Saved_Rule-Colors_for_',rule(7:end),'_',num2str(timenow(1,10:11)),'.', num2str(timenow(1,12:13)),'.', num2str(timenow(1,14:15)),'__', num2str(timenow(1,5:6)),'.', num2str(timenow(1,7:8)),'.', num2str(timenow(1,1:4)),'.','mat'];
current_time_date = {current_time_date}; %changes current_time_date to a cell for inputdlg
savingname=(inputdlg('','Save As',1,current_time_date));
savingname=savingname{1};
save([savingpath,'\',savingname],'rulenumberbinary','rulecolors','possiblestates');

Contact us at files@mathworks.com