Code covered by the BSD License  

Highlights from
choose_profile_limits

image thumbnail
from choose_profile_limits by Kevin Bartlett
Allows user to choose limits of oceanographic profile (e.g., CTD cast)

accept_control_callback()
function [] = accept_control_callback()
%
% accept_control_callback.m--Callback for "Accept" button.
%
% Syntax: accept_control_callback

% Developed in Matlab 7.0.1.24704 (R14) Service Pack 1 on GLNX86.
% Kevin Bartlett (kpb@uvic.ca), 2006-03-20 15:08
%-------------------------------------------------------------------------

%cpl_constants = get(gcbf,'userdata');
cpl_properties = getappdata(gcbf,'cpl_properties');
startIndex = cpl_properties.startIndex;
endIndex = cpl_properties.endIndex;
setappdata(gcbf,'profileLimits',[startIndex endIndex]);
%close(gcbf);
uiresume(gcbf);

Contact us at files@mathworks.com