No BSD License  

Highlights from
CoCoMac

image thumbnail
from CoCoMac by James Allen
Download CoCoMac.org cortical connectivity data, model it as a network, and simulate epileptic sprea

fc_change_timesteps(noOfTimeSteps)
function []= fc_change_timesteps(noOfTimeSteps)

% If the user changes the number of time steps, we need to make sure
% the values in the animation panel remain consistent (i.e. the animation
% frame editbox and slider must not be greater than the no. of time steps),
% and the user must not be allowed to run an animation, since the activ
% matrix has not yet been recalculated for the new time steps (so make it
% invisible)

value = str2num(noOfTimeSteps);
if isempty(value)
   set(findobj('tag', 'animation_delay_editbox'), string, '5');
   return;
end

set(findobj('tag', 'animation_frame_editbox'), 'string', noOfTimeSteps);
set(findobj('tag', 'animation_slider'), 'max', value);
set(findobj('tag', 'animation_slider'), 'value', value);
set(findobj('tag', 'panel_animation'), 'visible', 'off');
set(findobj('tag', 'animation_frame_label'), 'visible', 'off');
set(findobj('tag', 'animation_frame_editbox'), 'visible', 'off');
set(findobj('tag', 'animation_slider'), 'visible', 'off');

return

Contact us at files@mathworks.com