% --- Executes just before choosebundary is made visible.
function choosebundary_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to choosebundary (see VARARGIN)
% Choose default command line output for choosebundary
handles.output = hObject;
global E
global mu
global sigamas
global taus
global button
handles.second_output = E;
handles.third_output = mu;
handles.fourth_output = sigamas;
handles.fifth_output = taus;
handles.sixth_output = button;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes choosebundary wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = choosebundary_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
varargout{2} = handles.second_output;
varargout{3} = handles.third_output;
varargout{4} = handles.fourth_output;
varargout{5} = handles.fifth_output;
varargout{6} = handles.sixth_output;]