Home > bioelectromagnetism > DTIvol.m

DTIvol

PURPOSE ^

DTIVOL M-file for DTIvol.fig

SYNOPSIS ^

function varargout = DTIvol(varargin)

DESCRIPTION ^

 DTIVOL M-file for DTIvol.fig
      DTIVOL, by itself, creates a new DTIVOL or raises the existing
      singleton*.

      H = DTIVOL returns the handle to a new DTIVOL or the handle to
      the existing singleton*.

      DTIVOL('CALLBACK',hObject,eventData,handles,...) calls the local
      function named CALLBACK in DTIVOL.M with the given input arguments.

      DTIVOL('Property','Value',...) creates a new DTIVOL or raises the
      existing singleton*.  Starting from the left, property value pairs are
      applied to the GUI before DTIvol_OpeningFunction gets called.  An
      unrecognized property name or invalid value makes property application
      stop.  All inputs are passed to DTIvol_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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 function varargout = DTIvol(varargin)
0002 % DTIVOL M-file for DTIvol.fig
0003 %      DTIVOL, by itself, creates a new DTIVOL or raises the existing
0004 %      singleton*.
0005 %
0006 %      H = DTIVOL returns the handle to a new DTIVOL or the handle to
0007 %      the existing singleton*.
0008 %
0009 %      DTIVOL('CALLBACK',hObject,eventData,handles,...) calls the local
0010 %      function named CALLBACK in DTIVOL.M with the given input arguments.
0011 %
0012 %      DTIVOL('Property','Value',...) creates a new DTIVOL or raises the
0013 %      existing singleton*.  Starting from the left, property value pairs are
0014 %      applied to the GUI before DTIvol_OpeningFunction gets called.  An
0015 %      unrecognized property name or invalid value makes property application
0016 %      stop.  All inputs are passed to DTIvol_OpeningFcn via varargin.
0017 %
0018 %      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
0019 %      instance to run (singleton)".
0020 %
0021 % See also: GUIDE, GUIDATA, GUIHANDLES
0022 
0023 % Edit the above text to modify the response to help DTIvol
0024 
0025 % Last Modified by GUIDE v2.5 24-Apr-2004 23:35:14
0026 
0027 % Begin initialization code - DO NOT EDIT
0028 gui_Singleton = 1;
0029 gui_State = struct('gui_Name',       mfilename, ...
0030                    'gui_Singleton',  gui_Singleton, ...
0031                    'gui_OpeningFcn', @DTIvol_OpeningFcn, ...
0032                    'gui_OutputFcn',  @DTIvol_OutputFcn, ...
0033                    'gui_LayoutFcn',  [] , ...
0034                    'gui_Callback',   []);
0035 if nargin & isstr(varargin{1})
0036     gui_State.gui_Callback = str2func(varargin{1});
0037 end
0038 
0039 if nargout
0040     [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
0041 else
0042     gui_mainfcn(gui_State, varargin{:});
0043 end
0044 % End initialization code - DO NOT EDIT
0045 
0046 
0047 % --- Executes just before DTIvol is made visible.
0048 function DTIvol_OpeningFcn(hObject, eventdata, handles, varargin)
0049 % This function has no output args, see OutputFcn.
0050 % hObject    handle to figure
0051 % eventdata  reserved - to be defined in a future version of MATLAB
0052 % handles    structure with handles and user data (see GUIDATA)
0053 % varargin   command line arguments to DTIvol (see VARARGIN)
0054 
0055 % Choose default command line output for DTIvol
0056 handles.output = hObject;
0057 
0058 % Update handles structure
0059 guidata(hObject, handles);
0060 
0061 % UIWAIT makes DTIvol wait for user response (see UIRESUME)
0062 % uiwait(handles.figure1);
0063 
0064 assignin('base','doFAmap',0);
0065 assignin('base','dotADC',0);
0066 assignin('base','dolambda1',0);
0067 assignin('base','dolambda2',0);
0068 assignin('base','dolambda3',0);
0069 assignin('base','docm',0);
0070 assignin('base','noise',60);
0071 extension='IMA';
0072 assignin('base','extension',extension);
0073 
0074 % --- Outputs from this function are returned to the command line.
0075 function varargout = DTIvol_OutputFcn(hObject, eventdata, handles)
0076 % varargout  cell array for returning output args (see VARARGOUT);
0077 % hObject    handle to figure
0078 % eventdata  reserved - to be defined in a future version of MATLAB
0079 % handles    structure with handles and user data (see GUIDATA)
0080 
0081 % Get default command line output from handles structure
0082 varargout{1} = handles.output;
0083 
0084 
0085 % --- Executes on button press in tagFA.
0086 function tagFA_Callback(hObject, eventdata, handles)
0087 % hObject    handle to tagFA (see GCBO)
0088 % eventdata  reserved - to be defined in a future version of MATLAB
0089 % handles    structure with handles and user data (see GUIDATA)
0090 
0091 % Hint: get(hObject,'Value') returns toggle state of tagFA
0092 doFAmap=get(hObject,'Value');
0093 assignin('base','doFAmap',doFAmap);
0094 
0095 % --- If Enable == 'on', executes on mouse press in 5 pixel border.
0096 % --- Otherwise, executes on mouse press in 5 pixel border or over tagFA.
0097 function tagFA_ButtonDownFcn(hObject, eventdata, handles)
0098 % hObject    handle to tagFA (see GCBO)
0099 % eventdata  reserved - to be defined in a future version of MATLAB
0100 % handles    structure with handles and user data (see GUIDATA)
0101 
0102 
0103 
0104 
0105 
0106 % --- If Enable == 'on', executes on mouse press in 5 pixel border.
0107 % --- Otherwise, executes on mouse press in 5 pixel border or over pushbutton1.
0108 function pushbutton1_ButtonDownFcn(hObject, eventdata, handles)
0109 % hObject    handle to pushbutton1 (see GCBO)
0110 % eventdata  reserved - to be defined in a future version of MATLAB
0111 % handles    structure with handles and user data (see GUIDATA)
0112 
0113 
0114 
0115 
0116 % --- Executes on button press in tagtADC.
0117 function tagtADC_Callback(hObject, eventdata, handles)
0118 % hObject    handle to tagtADC (see GCBO)
0119 % eventdata  reserved - to be defined in a future version of MATLAB
0120 % handles    structure with handles and user data (see GUIDATA)
0121 
0122 % Hint: get(hObject,'Value') returns toggle state of tagtADC
0123 dotADC=get(hObject,'Value');
0124 assignin('base','dotADC',dotADC);
0125 % --- Executes on button press in tagColormap.
0126 function tagColormap_Callback(hObject, eventdata, handles)
0127 % hObject    handle to tagColormap (see GCBO)
0128 % eventdata  reserved - to be defined in a future version of MATLAB
0129 % handles    structure with handles and user data (see GUIDATA)
0130 
0131 % Hint: get(hObject,'Value') returns toggle state of tagColormap
0132 docm=get(hObject,'Value');
0133 assignin('base','docm',docm);
0134 
0135 % --- Executes on button press in tage1.
0136 function tage1_Callback(hObject, eventdata, handles)
0137 % hObject    handle to tage1 (see GCBO)
0138 % eventdata  reserved - to be defined in a future version of MATLAB
0139 % handles    structure with handles and user data (see GUIDATA)
0140 
0141 % Hint: get(hObject,'Value') returns toggle state of tage1
0142 dolambda1=get(hObject,'Value');
0143 assignin('base','dolambda1',dolambda1);
0144 % --- Executes on button press in tage2.
0145 function tage2_Callback(hObject, eventdata, handles)
0146 % hObject    handle to tage2 (see GCBO)
0147 % eventdata  reserved - to be defined in a future version of MATLAB
0148 % handles    structure with handles and user data (see GUIDATA)
0149 
0150 % Hint: get(hObject,'Value') returns toggle state of tage2
0151 dolambda2=get(hObject,'Value');
0152 assignin('base','dolambda2',dolambda2)
0153 % --- Executes on button press in tage3.
0154 function tage3_Callback(hObject, eventdata, handles)
0155 % hObject    handle to tage3 (see GCBO)
0156 % eventdata  reserved - to be defined in a future version of MATLAB
0157 % handles    structure with handles and user data (see GUIDATA)
0158 
0159 % Hint: get(hObject,'Value') returns toggle state of tage3
0160 %dolambda3='y';
0161 dolambda3=get(hObject,'Value');
0162 assignin('base','dolambda3',dolambda3);
0163 
0164 
0165 % --- Executes during object creation, after setting all properties.
0166 function tagnoise_CreateFcn(hObject, eventdata, handles)
0167 % hObject    handle to tagnoise (see GCBO)
0168 % eventdata  reserved - to be defined in a future version of MATLAB
0169 % handles    empty - handles not created until after all CreateFcns called
0170 
0171 % Hint: edit controls usually have a white background on Windows.
0172 %       See ISPC and COMPUTER.
0173 if ispc
0174     set(hObject,'BackgroundColor','white');
0175 else
0176     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0177 end
0178 
0179 
0180 
0181 function tagnoise_Callback(hObject, eventdata, handles)
0182 % hObject    handle to tagnoise (see GCBO)
0183 % eventdata  reserved - to be defined in a future version of MATLAB
0184 % handles    structure with handles and user data (see GUIDATA)
0185 
0186 % Hints: get(hObject,'String') returns contents of tagnoise as text
0187 %        str2double(get(hObject,'String')) returns contents of tagnoise as a double
0188 noise=str2double(get(hObject,'String'));
0189 
0190 
0191 % --- Executes on button press in pushbutton1.
0192 function pushbutton1_Callback(hObject, eventdata, handles)
0193 % hObject    handle to pushbutton1 (see GCBO)
0194 % eventdata  reserved - to be defined in a future version of MATLAB
0195 % handles    structure with handles and user data (see GUIDATA)
0196 
0197 
0198 DTIguicode
0199 
0200 
0201 
0202 % --- If Enable == 'on', executes on mouse press in 5 pixel border.
0203 % --- Otherwise, executes on mouse press in 5 pixel border or over tagnoise.
0204 function tagnoise_ButtonDownFcn(hObject, eventdata, handles)
0205 % hObject    handle to tagnoise (see GCBO)
0206 % eventdata  reserved - to be defined in a future version of MATLAB
0207 % handles    structure with handles and user data (see GUIDATA)
0208 %noise=str2double(get(hObject,'String'))
0209 
0210 
0211 % --- Executes on button press in checkbox7.
0212 function checkbox7_Callback(hObject, eventdata, handles)
0213 % hObject    handle to checkbox7 (see GCBO)
0214 % eventdata  reserved - to be defined in a future version of MATLAB
0215 % handles    structure with handles and user data (see GUIDATA)
0216 
0217 % Hint: get(hObject,'Value') returns toggle state of checkbox7
0218 
0219 
0220 % --- If Enable == 'on', executes on mouse press in 5 pixel border.
0221 % --- Otherwise, executes on mouse press in 5 pixel border or over checkbox7.
0222 function checkbox7_ButtonDownFcn(hObject, eventdata, handles)
0223 % hObject    handle to checkbox7 (see GCBO)
0224 % eventdata  reserved - to be defined in a future version of MATLAB
0225 % handles    structure with handles and user data (see GUIDATA)
0226 
0227 
0228 % --- If Enable == 'on', executes on mouse press in 5 pixel border.
0229 % --- Otherwise, executes on mouse press in 5 pixel border or over noise0.
0230 function noise0_ButtonDownFcn(hObject, eventdata, handles)
0231 % hObject    handle to noise0 (see GCBO)
0232 % eventdata  reserved - to be defined in a future version of MATLAB
0233 % handles    structure with handles and user data (see GUIDATA)
0234 
0235 
0236 % --- Executes on button press in noise0.
0237 function noise0_Callback(hObject, eventdata, handles)
0238 % hObject    handle to noise0 (see GCBO)
0239 % eventdata  reserved - to be defined in a future version of MATLAB
0240 % handles    structure with handles and user data (see GUIDATA)
0241 
0242 % Hint: get(hObject,'Value') returns toggle state of noise0
0243 noisestate=get(hObject,'Value')
0244 if (noisestate==1)
0245     noise=0
0246 end
0247 
0248 
0249 % --- If Enable == 'on', executes on mouse press in 5 pixel border.
0250 % --- Otherwise, executes on mouse press in 5 pixel border or over tagtADC.
0251 function tagtADC_ButtonDownFcn(hObject, eventdata, handles)
0252 % hObject    handle to tagtADC (see GCBO)
0253 % eventdata  reserved - to be defined in a future version of MATLAB
0254 % handles    structure with handles and user data (see GUIDATA)
0255 
0256 
0257 dotADC=get(hObject,'Value')
0258 assignin('base','dotADC',dotADC)
0259 
0260 
0261 % --- If Enable == 'on', executes on mouse press in 5 pixel border.
0262 % --- Otherwise, executes on mouse press in 5 pixel border or over frame1.
0263 function frame1_ButtonDownFcn(hObject, eventdata, handles)
0264 % hObject    handle to frame1 (see GCBO)
0265 % eventdata  reserved - to be defined in a future version of MATLAB
0266 % handles    structure with handles and user data (see GUIDATA)
0267 
0268 
0269 % --- Executes during object creation, after setting all properties.
0270 function edit2_CreateFcn(hObject, eventdata, handles)
0271 % hObject    handle to edit2 (see GCBO)
0272 % eventdata  reserved - to be defined in a future version of MATLAB
0273 % handles    empty - handles not created until after all CreateFcns called
0274 
0275 % Hint: edit controls usually have a white background on Windows.
0276 %       See ISPC and COMPUTER.
0277 if ispc
0278     set(hObject,'BackgroundColor','white');
0279 else
0280     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0281 end
0282 
0283 
0284 
0285 function edit2_Callback(hObject, eventdata, handles)
0286 % hObject    handle to edit2 (see GCBO)
0287 % eventdata  reserved - to be defined in a future version of MATLAB
0288 % handles    structure with handles and user data (see GUIDATA)
0289 
0290 % Hints: get(hObject,'String') returns contents of edit2 as text
0291 %        str2double(get(hObject,'String')) returns contents of edit2 as a double
0292 noise=str2double(get(hObject,'String'));
0293 assignin('base','noise',noise);
0294 
0295 
0296 % --- Executes during object creation, after setting all properties.
0297 function extension_CreateFcn(hObject, eventdata, handles)
0298 % hObject    handle to extension (see GCBO)
0299 % eventdata  reserved - to be defined in a future version of MATLAB
0300 % handles    empty - handles not created until after all CreateFcns called
0301 
0302 % Hint: edit controls usually have a white background on Windows.
0303 %       See ISPC and COMPUTER.
0304 if ispc
0305     set(hObject,'BackgroundColor','white');
0306 else
0307     set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
0308 end
0309 
0310 
0311 
0312 function extension_Callback(hObject, eventdata, handles)
0313 % hObject    handle to extension (see GCBO)
0314 % eventdata  reserved - to be defined in a future version of MATLAB
0315 % handles    structure with handles and user data (see GUIDATA)
0316 
0317 % Hints: get(hObject,'String') returns contents of extension as text
0318 %        str2double(get(hObject,'String')) returns contents of extension as a double
0319 
0320 extension=get(hObject,'String');
0321 assignin('base','extension',extension);
0322 
0323 
0324 % --- If Enable == 'on', executes on mouse press in 5 pixel border.
0325 % --- Otherwise, executes on mouse press in 5 pixel border or over extension.
0326 function extension_ButtonDownFcn(hObject, eventdata, handles)
0327 % hObject    handle to extension (see GCBO)
0328 % eventdata  reserved - to be defined in a future version of MATLAB
0329 % handles    structure with handles and user data (see GUIDATA)
0330 
0331

Generated on Mon 15-Aug-2005 15:36:19 by m2html © 2003