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

📄 plus.m

📁 There are numerous MATLAB m-files included in this software package. Thus, the the authors have bund
💻 M
字号:
function r = plus(a,b)

if isa(a, 'DateTime') & isa(b, 'double')
    pom = a.wsec + b;
    r = DateTime(a.gweek, pom);
elseif isa(b, 'DateTime') & isa(a, 'double')
    pom = a + b.wsec;
    r = DateTime(b.gweek, pom);
else
    err = sprintf('Operator plus in DateTime does not allow arguments %s %s', class(a), class(b));
    error(err);
end

⌨️ 快捷键说明

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