MATLAB 帮助中心
确定输入是否为日历持续时间数组
tf = iscalendarduration(t)
如果 t 是 calendarDuration 数组,tf = iscalendarduration(t) 将返回逻辑值 1 (true)。否则,将返回逻辑值 0 (false)。
t
calendarDuration
1
true
0
false
示例
全部折叠
确定算术计算输出是否为一个 calendarDuration 数组。
添加两个 calendarDuration 数组。
d1 = calyears(1:4); d2 = caldays(1:4); d = d1 + d2
d = 1×4 calendarDuration 1y 1d 2y 2d 3y 3d 4y 4d
确定输出是否为一个 calendarDuration 数组。
tf = iscalendarduration(d)
tf = logical 1
输入数组,指定为标量、向量、矩阵或多维数组。t 可以是任何数据类型。
全部展开
backgroundPool
ThreadPool
此函数完全支持分布式数组。有关详细信息,请参阅使用分布式数组运行 MATLAB 函数 (Parallel Computing Toolbox)。
在 R2014b 中推出
calendarDuration | isdatetime | isduration
isdatetime
isduration
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处