MATLAB运行出现警告: 名称不存在或不是目录

96happy 96happy 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
代码
function MWS = GasTurbine_setup_everything(varargin)
% T-MATS -- burner_MWS.m
if(nargin == 0) % if engName argument is not passed into setup_MWS
MWS.engName = 'engine1';
inputs = [];
elseif(nargin == 1)
inputs = varargin{1};
MWS.engName = 'engine1';
elseif(nargin == 2)
inputs = varargin{1};
MWS.engName = varargin{2};
end
%--------- get name of starting directory ----
MWS.top_level = pwd;
POp = filesep;

%--------- add necessary subdirectories to current MATLAB path
eval(['addpath ',MWS.top_level,POp,'SimSetup'])

%------ run various setup files to get tables & constants ---------
MWS = setup_Solve_temp(MWS); % develops variables for the iterative solver
MWS = setup_Inputs(MWS); % sets up input vectors
MWS = setup_HPC(MWS); % develops variables for HPC
MWS = setup_Shaft(MWS); % develops variables for Shaft
MWS = setup_Noz(MWS); % develops variables for Noz
MWS = setup_HPT(MWS); % develops variables for HPT
MWS = setup_Burner(MWS); % develops variables for Burner
MWS = setup_Duct(MWS); % develops variables for Duct
MWS = setup_Inlet(MWS); % develops variables for Inlet

% if no output is specified, then just assign MWS to the workspace
if(nargout == 0)
assignin('base','MWS',MWS);
end

% open template
open_system('GasTurbine.slx');

% loading complete
disp('** GasTurbine ready to execute **')
...全文
评论
收藏 已收藏
分享
返回顶部
96happy
C++ 语言 65,214 成员 250,514 内容