✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。
🍎个人主页:Matlab科研工作室
🍊个人信条:格物致知。
更多Matlab仿真内容点击👇
⛄ 内容介绍
基于Matlab模拟涡轮喷气发动机
⛄ 部分代码
function varargout = condtion(varargin)
% CONDTION MATLAB code for condtion.fig
% CONDTION, by itself, creates a new CONDTION or raises the existing
% singleton*.
%
% H = CONDTION returns the handle to a new CONDTION or the handle to
% the existing singleton*.
%
% CONDTION('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in CONDTION.M with the given input arguments.
%
% CONDTION('Property','Value',...) creates a new CONDTION or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before condtion_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to condtion_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 condtion
% Last Modified by GUIDE v2.5 02-Nov-2014 21:19:30
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @condtion_OpeningFcn, ...
'gui_OutputFcn', @condtion_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 condtion is made visible.
function condtion_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 condtion (see VARARGIN)
% Choose default command line output for condtion
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes condtion wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = condtion_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 on button press in perfect.
function perfect_Callback(hObject, eventdata, handles)
% hObject handle to perfect (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
perfect=1;
under=0;
save perfect perfect
guidata(hObject,handles)
save under under
guidata(hObject,handles)
close('condtion');
% --- Executes on button press in under.
function under_Callback(hObject, eventdata, handles)
% hObject handle to under (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
under=1;
perfect=0;
save perfect perfect
guidata(hObject,handles)
save under under
guidata(hObject,handles)
close('condtion');
⛄ 运行结果
⛄ 参考文献
[1]梁允中, 王志英, 朱青. 涡轮喷气发动机高空模拟试验[J]. 推进技术, 1984(02):25-34.
[2]黄李, 张天宏. 基于Matlab\\Simulink的微型涡喷发动机起动建模及控制研究[C]// 中国航空学会. 中国航空学会, 2010.