?? geoandleo.m
字號:
function varargout = GEOAndLEO(varargin)
% GEOANDLEO M-file for GEOAndLEO.fig
% GEOANDLEO, by itself, creates a new GEOANDLEO or raises the existing
% singleton*.
%
% H = GEOANDLEO returns the handle to a new GEOANDLEO or the handle to
% the existing singleton*.
%
% GEOANDLEO('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in GEOANDLEO.M with the given input arguments.
%
% GEOANDLEO('Property','Value',...) creates a new GEOANDLEO or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before GEOAndLEO_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to GEOAndLEO_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 GEOAndLEO
% Last Modified by GUIDE v2.5 05-Apr-2006 21:07:16
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @GEOAndLEO_OpeningFcn, ...
'gui_OutputFcn', @GEOAndLEO_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin & isstr(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 GEOAndLEO is made visible.
function GEOAndLEO_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 GEOAndLEO (see VARARGIN)
% Choose default command line output for GEOAndLEO
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes GEOAndLEO wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = GEOAndLEO_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;
% --- Executes during object creation, after setting all properties.function edit1_CreateFcn(hObject, eventdata, handles)% hObject handle to edit1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction edit1_Callback(hObject, eventdata, handles)% hObject handle to edit1 (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,'String') returns contents of edit1 as text% str2double(get(hObject,'String')) returns contents of edit1 as a double% --- Executes during object creation, after setting all properties.function LEO_Speed_CreateFcn(hObject, eventdata, handles)% hObject handle to LEO_Speed (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction LEO_Speed_Callback(hObject, eventdata, handles)% hObject handle to LEO_Speed (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,'String') returns contents of LEO_Speed as text% str2double(get(hObject,'String')) returns contents of LEO_Speed as a double% --- Executes during object creation, after setting all properties.function LEO_Angle_CreateFcn(hObject, eventdata, handles)% hObject handle to LEO_Angle (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction LEO_Angle_Callback(hObject, eventdata, handles)% hObject handle to LEO_Angle (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,'String') returns contents of LEO_Angle as text% str2double(get(hObject,'String')) returns contents of LEO_Angle as a double% --- Executes on button press in LEO_Round.function LEO_Round_Callback(hObject, eventdata, handles)% hObject handle to LEO_Round (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of LEO_Round
if(get(handles.LEO_Round,'value')==1)
set(handles.LEO_Radius,'enable','on');
%-----------------------------------------------
set(handles.LEO_Ellipse,'value',0);
set(handles.LEO_LongAxes,'enable','off');
set(handles.LEO_e,'enable','off');
set(handles.LEO_Speed,'enable','on');
set(handles.LEO_Perigee,'enable','off');
set(handles.LEO_Apogee,'enable','off');
else
set(handles.LEO_Radius,'enable','off');
%-------------------------------------------
set(handles.LEO_Ellipse,'value',1);
set(handles.LEO_LongAxes,'enable','on');
set(handles.LEO_e,'enable','on');
set(handles.LEO_Speed,'enable','off')
set(handles.LEO_Perigee,'enable','off');
set(handles.LEO_Apogee,'enable','off');
end% --- Executes on button press in LEO_Ellipse.function LEO_Ellipse_Callback(hObject, eventdata, handles)% hObject handle to LEO_Ellipse (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of LEO_Ellipse
if(get(handles.LEO_Ellipse,'value')==1)
set(handles.LEO_LongAxes,'enable','on');
set(handles.LEO_e,'enable','on');
%-------------------------------------------
set(handles.LEO_Round,'value',0);
set(handles.LEO_Radius,'enable','off');
set(handles.LEO_Speed,'enable','off')
set(handles.LEO_Perigee,'enable','on');
set(handles.LEO_Apogee,'enable','on');
else
set(handles.LEO_LongAxes,'enable','off');
set(handles.LEO_e,'enable','off');
%----------------------------------------------
set(handles.LEO_Round,'value',1);
set(handles.LEO_Radius,'enable','on');
set(handles.LEO_Speed,'enable','on')
set(handles.LEO_Perigee,'enable','on');
set(handles.LEO_Apogee,'enable','on');
end
% --- Executes during object creation, after setting all properties.function LEO_Radius_CreateFcn(hObject, eventdata, handles)% hObject handle to LEO_Radius (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction LEO_Radius_Callback(hObject, eventdata, handles)% hObject handle to LEO_Radius (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,'String') returns contents of LEO_Radius as text% str2double(get(hObject,'String')) returns contents of LEO_Radius as a double% --- Executes during object creation, after setting all properties.function Longaxes_CreateFcn(hObject, eventdata, handles)% hObject handle to Longaxes (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction Longaxes_Callback(hObject, eventdata, handles)% hObject handle to Longaxes (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,'String') returns contents of Longaxes as text% str2double(get(hObject,'String')) returns contents of Longaxes as a double% --- Executes during object creation, after setting all properties.function LEO_e_CreateFcn(hObject, eventdata, handles)% hObject handle to LEO_e (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction LEO_e_Callback(hObject, eventdata, handles)% hObject handle to LEO_e (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,'String') returns contents of LEO_e as text% str2double(get(hObject,'String')) returns contents of LEO_e as a double% --- Executes during object creation, after setting all properties.function LEO_LongAxes_CreateFcn(hObject, eventdata, handles)% hObject handle to LEO_LongAxes (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction LEO_LongAxes_Callback(hObject, eventdata, handles)% hObject handle to LEO_LongAxes (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,'String') returns contents of LEO_LongAxes as text% str2double(get(hObject,'String')) returns contents of LEO_LongAxes as a double% --- Executes during object creation, after setting all properties.function edit7_CreateFcn(hObject, eventdata, handles)% hObject handle to edit7 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -