destroy the GRAPH_MAGIC system
0001 function graph_destroy 0002 % destroy the GRAPH_MAGIC system 0003 0004 disp('WARNING: This will delete all graphs and invalidate all graph handles') 0005 yn = input('Are you sure you want to proceed? 1 = YES, 0 = NO --> '); 0006 0007 if (yn == 1) 0008 clear global GRAPH_MAGIC 0009 disp('All graphs destroyed. Start over with graph_init'); 0010 else 0011 disp('Destruction canceled'); 0012 end 0013