⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 save.m

📁 这是一个关于MATLAB的函数
💻 M
字号:
function dummy = save(cc,filename,filetype)
%SAVE  Saves file(s) in Code Composer Studio(tm)
%   SAVE(CC,FILENAME,FILETYPE) saves the specified file
%   in Code Composer.  FILETYPE defines the type of file
%   to be saved. FILENAME must match the name of the file that
%   is to save.  If the FILENAME is parameter is specified
%   as 'all', every open file of the defined type is saved.
%   A null filename input (i.e. []) will save the
%   currently active (or in focus) file.
%
%   SAVE(CC,'all','project')  - Saves all project files
%   SAVE(CC,'my.pjt','project') - Saves the project: my.pjt
%   SAVE(CC,[],'project')  - Saves the active project
%
%   SAVE(CC,'all','text')  - Save all text files.
%   SAVE(CC,'text.cpp','text') - Saves the specified text file: text.cpp
%   SAVE(CC,[],'text')  - Save the active (in focus) text files.
%
%   See also ADD, OPEN, CD, CLOSE. 

% Copyright 2001-2002 The MathWorks, Inc.
% $Revision: 1.4 $ $Date: 2002/06/12 15:30:29 $
error(nargchk(3,3,nargin));
if ~ishandle(cc),
    error('First Parameter must be a CCSDSP Handle');
end

%if ~isempty(filename) ,
%    error('The only supported FILENAME option is [], which saves all files');
%end

if ~isempty(filename) & ~strcmpi(filename,'all'),
    try 
       filename = cc.fileparamparser(filename);
    catch
         % Try anyway
    end
end

if strcmpi(filetype,'project'),
    ccsmexswitchyard([47,cc.boardnum,cc.procnum,0,0],filename);
elseif strcmpi(filetype,'text'),
    ccsmexswitchyard([48,cc.boardnum,cc.procnum,0,0],filename);
else
    error('The only supported FILETYPE options are ''project'' and ''text''');
end
% [EOF] save.m

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -