function varargout = edit_callback(varargin)
% EDIT_CALLBACK M-file for edit_callback.fig
%      EDIT_CALLBACK, by itself, creates a new EDIT_CALLBACK or raises the existing
%      singleton*.
%
%      H = EDIT_CALLBACK returns the handle to a new EDIT_CALLBACK or the handle to
%      the existing singleton*.
%
%      EDIT_CALLBACK('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in EDIT_CALLBACK.M with the given input arguments.
%
%      EDIT_CALLBACK('Property','Value',...) creates a new EDIT_CALLBACK or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before edit_callback_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to edit_callback_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help edit_callback

% Last Modified by GUIDE v2.5 11-Aug-2009 12:02:08

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @edit_callback_OpeningFcn, ...
                   'gui_OutputFcn',  @edit_callback_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before edit_callback is made visible.
function edit_callback_OpeningFcn(hObject, eventdata, handles, varargin)

handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes edit_callback wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = edit_callback_OutputFcn(hObject, eventdata, handles) 

varargout{1} = handles.output;



function edit1_Callback(hObject, eventdata, handles)

str = sprintf('param(2) = %s;', get(hObject, 'String')); 
evalin('base',str);

% --- Executes during object creation, after setting all properties.
function edit1_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


