【正文】
tdata, handles) % hObject handle to Untitled_1 (see GCBO) 激光原理課程設(shè)計(jì) 15 % eventdata reserved to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) function y=QU(x,u) global steps L k a x_=linspace(a,a,steps)。 axes() surf(X,Y,Z_A) axis([a a a a 0 ]) angle_u0=angle(u0)/pi*180。 u_=ones(1,steps)。 k=2*pi/lamda。))。String39。 end % Executes on button press in pushbutton3. function pushbutton3_Callback(hObject, eventdata, handles) % hObject handle to pushbutton3 (see GCBO) % eventdata reserved to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global steps L k a lamda=str2num(get(,39。 for m=1:N for mm=1:steps u0(mm)=QU(x(mm),u_)。 k=2*pi/lamda。))。String39。 end % Executes on button press in pushbutton2. function pushbutton2_Callback(hObject, eventdata, handles) % hObject handle to pushbutton2 (see GCBO) % eventdata reserved to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global steps L k a lamda=str2num(get(,39。BackgroundColor39。BackgroundColor39。String39。)。)) set(hObject,39。 isequal(get(hObject,39。) returns contents of area as text % str2double(get(hObject,39。white39。defaultUicontrolBackgroundColor39。amp。String39。,39。), get(0,39。)) returns contents of wavelength as a double % Executes during object creation, after setting all properties. function wavelength_CreateF(hObject, eventdata, handles) % hObject handle to wavelength (see GCBO) % eventdata reserved to be defined in a future version of MATLAB % handles empty handles not created until after all CreateFs called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc amp。 function wavelength_Callback(hObject, eventdata, handles) % hObject handle to wavelength (see GCBO) % eventdata reserved to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,39。39。 end % End initialization code DO NOT EDIT % Executes just before Laser_GUI is made visible. function Laser_GUI_OpeningF(hObject, eventdata, handles, varargin) % This function has no output args, see OutputF. % 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 mand line arguments to Laser_GUI (see VARARGIN) % Choose default mand line output for Laser_GUI = hObject。amp。, [] , ... 39。, Laser_GUI_OpeningF, ... 39。, mfilename, ... 39。,...) creates a new LASER_GUI or raises the % existing singleton*. Starting from the left, property value pairs are % applied to the GUI before Laser_GUI_OpeningF gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to Laser_GUI_OpeningF via varargin. % % *See GUI Options on GUIDE39。,hObject,eventData,handles,...) calls th