📄 geoandleo.m
字号:
str_GEO_Radius=get(handles.GEO_Radius,'string');
str_LEO_LongAxes=get(handles.LEO_LongAxes,'string');
str_LEO_e=get(handles.LEO_e,'string');
str_LEO_Angle=get(handles.LEO_Angle,'string');
GEO_Radius=str2num(str_GEO_Radius);
LEO_LongAxes=str2num(str_LEO_LongAxes);
LEO_e=str2num(str_LEO_e);
LEO_Angle=str2num(str_LEO_Angle);
%--------------------------------------------------------------
a=LEO_LongAxes;
e=LEO_e;
b=(a^2-a*e)^(1/2);
%--------------------------------------------------------------
%计算输出量并显示
LEO_T=2*pi*(a)^(3/2)/u^(1/2)/3600;
GEO_T=2*pi*GEO_Radius^(3/2)/u^(1/2)/3600;
LEO_Perigee=a-a*e;
LEO_Apogee=a+a*e;
GEO_Speed=2*pi*GEO_Radius/GEO_T;
set(handles.LEO_T,'string',num2str(LEO_T));
set(handles.GEO_T,'string',num2str(GEO_T));
set(handles.LEO_Perigee,'string',num2str(LEO_Perigee));
set(handles.LEO_Apogee,'string',num2str(LEO_Apogee));
set(handles.GEO_Speed,'string',num2str(GEO_Speed));
%----------------------------------------------------------------
%调用子程序
ShowGVL_ETrack(GEO_Radius,LEO_LongAxes,LEO_e,LEO_Angle);
%==========================================================================
%如果LEO轨迹是圆型
else
%----------------------------------------------------------------
%取参数
str_GEO_Radius=get(handles.GEO_Radius,'string');
str_LEO_Radius=get(handles.LEO_Radius,'string');
str_LEO_Angle=get(handles.LEO_Angle,'string');
GEO_Radius=str2num(str_GEO_Radius);
LEO_Radius=str2num(str_LEO_Radius);
LEO_Angle=str2num(str_LEO_Angle);
%----------------------------------------------------------------------
%计算输出量并显示
LEO_T=2*pi*(LEO_Radius)^(3/2)/u^(1/2)/3600;
GEO_T=2*pi*GEO_Radius^(3/2)/u^(1/2)/3600;
LEO_Speed=2*pi*LEO_Radius/LEO_T;
GEO_Speed=2*pi*GEO_Radius/GEO_T;
set(handles.LEO_T,'string',num2str(LEO_T));
set(handles.GEO_T,'string',num2str(GEO_T));
set(handles.LEO_Speed,'string',num2str(LEO_Speed));
set(handles.GEO_Speed,'string',num2str(GEO_Speed));
%--------------------------------------------------------------
%调用子程序
ShowGVL_RTrack(GEO_Radius,LEO_Radius,LEO_Angle);
end
% --- Executes on button press in Show_LEO_Versus_GEO.function Show_LEO_Versus_GEO_Callback(hObject, eventdata, handles)% hObject handle to Show_LEO_Versus_GEO (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)u=3.986013*10^5;
%========================================================
%LEO的轨迹是椭圆,GEO轨迹是圆
if(get(handles.LEO_Ellipse,'value')==1)
%--------------------------------------------------------
%取参数
str_GEO_Radius=get(handles.GEO_Radius,'string');
str_LEO_LongAxes=get(handles.LEO_LongAxes,'string');
str_LEO_e=get(handles.LEO_e,'string');
str_LEO_Angle=get(handles.LEO_Angle,'string');
GEO_Radius=str2num(str_GEO_Radius);
LEO_LongAxes=str2num(str_LEO_LongAxes);
LEO_e=str2num(str_LEO_e);
LEO_Angle=str2num(str_LEO_Angle);
%--------------------------------------------------------------
a=LEO_LongAxes;
e=LEO_e;
b=(a^2-a*e)^(1/2);
%--------------------------------------------------------------
%计算输出量并显示
LEO_T=2*pi*(a)^(3/2)/u^(1/2)/3600;
GEO_T=2*pi*GEO_Radius^(3/2)/u^(1/2)/3600;
LEO_Perigee=a-a*e;
LEO_Apogee=a+a*e;
GEO_Speed=2*pi*GEO_Radius/GEO_T;
set(handles.LEO_T,'string',num2str(LEO_T));
set(handles.GEO_T,'string',num2str(GEO_T));
set(handles.LEO_Perigee,'string',num2str(LEO_Perigee));
set(handles.LEO_Apogee,'string',num2str(LEO_Apogee));
set(handles.GEO_Speed,'string',num2str(GEO_Speed));
%---------------------------------------------------------------
%调用子程序
ShowLVG_ETrack(GEO_Radius,LEO_LongAxes,LEO_e,LEO_Angle);
%======================================================
%LEO的轨迹是圆
else
%---------------------------------------------------------
%取参数
str_GEO_Radius=get(handles.GEO_Radius,'string');
str_LEO_Radius=get(handles.LEO_Radius,'string');
str_LEO_Angle=get(handles.LEO_Angle,'string');
GEO_Radius=str2num(str_GEO_Radius);
LEO_Radius=str2num(str_LEO_Radius);
LEO_Angle=str2num(str_LEO_Angle);
%--------------------------------------------------------------
%计算输出量并显示
LEO_T=2*pi*(LEO_Radius)^(3/2)/u^(1/2)/3600;
GEO_T=2*pi*GEO_Radius^(3/2)/u^(1/2)/3600;
LEO_Speed=2*pi*LEO_Radius/GEO_T;
GEO_Speed=2*pi*GEO_Radius/GEO_T;
set(handles.LEO_T,'string',num2str(LEO_T));
set(handles.GEO_T,'string',num2str(GEO_T));
set(handles.LEO_Speed,'string',num2str(LEO_Speed));
set(handles.GEO_Speed,'string',num2str(GEO_Speed));
%--------------------------------------------------------------
%调用子程序
ShowLVG_RTrack(GEO_Radius,LEO_Radius,LEO_Angle);
end
% --- Executes during object creation, after setting all properties.function edit18_CreateFcn(hObject, eventdata, handles)% hObject handle to edit18 (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 edit18_Callback(hObject, eventdata, handles)% hObject handle to edit18 (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 edit18 as text% str2double(get(hObject,'String')) returns contents of edit18 as a double% --- Executes on button press in LEO_.function LEO__Callback(hObject, eventdata, handles)% hObject handle to LEO_ (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_% --- Executes during object creation, after setting all properties.function edit19_CreateFcn(hObject, eventdata, handles)% hObject handle to edit19 (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 edit19_Callback(hObject, eventdata, handles)% hObject handle to edit19 (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 edit19 as text% str2double(get(hObject,'String')) returns contents of edit19 as a double% --- Executes during object creation, after setting all properties.function edit20_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 edit20_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 during object creation, after setting all properties.function edit21_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 edit21_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 edit22_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 edit22_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 edit24_CreateFcn(hObject, eventdata, handles)% hObject handle to edit24 (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 edit24_Callback(hObject, eventdata, handles)% hObject handle to edit24 (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 edit24 as text% str2double(get(hObject,'String')) returns contents of edit24 as a double% --- Executes during object creation, after setting all properties.function edit23_CreateFcn(hObject, eventdata, handles)% hObject handle to edit23 (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 edit23_Callback(hObject, eventdata, handles)% hObject handle to edit23 (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 edit23 as text% str2double(get(hObject,'String')) returns contents of edit23 as a double
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -