MATLAB运行出现警告: 名称不存在或不是目录
代码
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 **')

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 **')

...全文
相关推荐
matlab开发-目录和文件递归筛选名称日期或字节
matlab开发-目录和文件递归筛选名称日期或字节。以递归方式列出文件,以筛选名称、日期和/或大小。输出可以设置为名称、日期和/或大小。
matlab开发-向其他人发出警告.zip
matlab开发-向其他人发出警告.zip
rootdir:此函数创建相对于指定根目录、给定文件夹名称和相应目录级别的目录。-matlab开发
此函数创建相对于指定根目录、给定文件夹名称和相应目录级别的目录。
matlab不运行一段代码-VO:VO
matlab 不运行一段代码
dir_crawler.m:通过目录树爬行并返回具有按名称搜索功能的子目录和文件-matlab开发
脚本来爬取目录以获取其中的树和文件。 如果指定了子目录的搜索名称,则只返回包含该名称的分支和文件。 如果指定了文件的搜索名称,则只返回包含该名称的分支和文件


