%%%%%%%%%%%%%%%%%%%%function pushbutton_fangzhen_Callback(hObject,
%%%%%%%%%%%%%%%%%%%%eventdata, handles)主程序所在函数
function varargout = graduate(varargin)
% GRADUATE MATLAB code for graduate.fig
% GRADUATE, by itself, creates a new GRADUATE or raises the existing
% singleton*.
%
% H = GRADUATE returns the handle to a new GRADUATE or the handle to
% the existing singleton*.
%
% GRADUATE('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in GRADUATE.M with the given input arguments.
%
% GRADUATE('Property','Value',...) creates a new GRADUATE or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before graduate_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to graduate_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 graduate
% Last Modified by GUIDE v2.5 12-Jun-2021 10:34:42
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @graduate_OpeningFcn, ...
'gui_OutputFcn', @graduate_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 graduate is made visible.
function graduate_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 graduate (see VARARGIN)
global simVars
simVars.Track=0;
simVars.Tra=0;
simVars.data_number=0;
simVars.H_point=0;
simVars.L_point=0;
simVars.AC_point=0;
% Choose default command line output for graduate
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes graduate wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = graduate_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;
function txt_hengfeng_Callback(hObject, eventdata, handles)
% hObject handle to txt_hengfeng (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 txt_hengfeng as text
% str2double(get(hObject,'String')) returns contents of txt_hengfeng as a double
global simVars
simVars.Wx=str2double(get(hObject,'string'));
if isnan(simVars.Wx)
set(hObject,'String','');
errordlg('请输入数字','Bad Input','modal')
end
% --- Executes during object creation, after setting all properties.
function txt_hengfeng_CreateFcn(hObject, eventdata, handles)
% hObject handle to txt_hengfeng (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 && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function txt_zongfeng_Callback(hObject, eventdata, handles)
% hObject handle to txt_zongfeng (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 txt_zongfeng as text
% str2double(get(hObject,'String')) returns contents of txt_zongfeng as a double
global simVars
simVars.Wz=str2double(get(hObject,'string'));
if isnan(simVars.Wz)
set(hObject,'String','');
errordlg('请输入数字','Bad Input','modal')
end
% --- Executes during object creation, after setting all properties.
function txt_zongfeng_CreateFcn(hObject, eventdata, handles)
% hObject handle to txt_zongfeng (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 && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function txt_shexiangjiao_Callback(hObject, eventdata, handles)
% hObject handle to txt_shexiangjiao (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 txt_shexiangjiao as text
% str2double(get(hObject,'String')) returns contents of txt_shexiangjiao as a double
global simVars
simVars.alpha=str2double(get(hObject,'string'));
if isnan(simVars.alpha)
set(hObject,'String','');
errordlg('请输入数字','Bad Input','modal')
end
% --- Executes during object creation, after setting all properties.
function txt_shexiangjiao_CreateFcn(hObject, eventdata, handles)
% hObject handle to txt_shexiangjiao (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 && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function txt_weidu_Callback(hObject, eventdata, handles)
% hObject handle to txt_weidu (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 txt_weidu as text
% str2double(get(hObject,'String')) returns contents of txt_weidu as a double
global simVars
simVars.lambda=str2double(get(hObject,'string'));
if isnan(simVars.lambda)
set(hObject,'String','');
errordlg('请输入数字','Bad Input','modal')
end
% --- Executes during object creation, after setting all properties.
function txt_weidu_CreateFcn(hObject, eventdata, handles)
% hObject handle to txt_weidu (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 && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function txt_caiyang_Callback(hObject, eventdata, handles)
% hObject handle to txt_caiyang (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 txt_caiyang as text
% str2double(get(hObject,'String')) returns contents of txt_caiyang as a double
global simVars
simVars.h=
没有合适的资源?快使用搜索试试~ 我知道了~
气动学基于matlab GUI龙格库塔算法外tan道仿真【含Matlab源码 1053期】.zip
共15个文件
jpg:6个
m:4个
dll:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 22 下载量 139 浏览量
2021-12-13
23:19:07
上传
评论 20
收藏 1.2MB ZIP 举报
温馨提示
CSDN海神之光上传的全部代码均可运行,亲测可用,尽我所能,为你服务; 1、代码压缩包内容 主函数:graduate.m; 调用函数:其他m文件;无需运行 运行结果效果图; 2、代码运行版本 Matlab 2019b;若运行有误,根据提示修改;若不会,可私信博主; 3、运行操作步骤 步骤一:将所有文件放到Matlab的当前文件夹中; 步骤二:双击打开graduate.m文件; 步骤三:点击运行,等程序运行完得到结果; 4、物理应用 仿真:导航、地震、电磁、电路、电能、机械、工业控制、水位控制、直流电机、平面电磁波、管道瞬变流 光学:光栅、杨氏双缝、单缝、多缝、圆孔、矩孔衍射、夫琅禾费、干涉、拉盖尔高斯、光束、光波、涡旋 定位问题:chan、taylor、RSSI、music、卡尔曼滤波UWB 气动学:弹道、气体扩散、龙格库弹道 运动学:倒立摆、泊车 天体学:卫星轨道、姿态
资源推荐
资源详情
资源评论
收起资源包目录
【气动学】基于matlab GUI龙格库塔算法外tan道仿真【含Matlab源码 1053期】.zip (15个子文件)
【气动学】基于matlab GUI龙格库塔算法外弹道仿真【含Matlab源码 1053期】
mexrun.dll 20KB
Cx_x.m 2KB
graduate.m 59KB
运行结果.JPG 151KB
帮助文档
帮助文档_04.jpg 88KB
帮助文档_03.jpg 156KB
帮助文档_02.jpg 119KB
帮助文档_01.jpg 27KB
帮助文档_05.jpg 37KB
graduate.fig 43KB
alldata.mat 409KB
comet3m.m 5KB
1.xls 18KB
AngleStandardize.m 1KB
帮助文档.docx 291KB
共 15 条
- 1
海神之光
- 粉丝: 5w+
- 资源: 6477
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
前往页