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

96happy 2020-01-10 10:21:34
代码
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 **')
...全文
1850 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

65,187

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧