www.gusucode.com > bigdata 工具箱 matlab源码程序 > bigdata/@tall/time.m
function tt = time(td) %TIME Extract the time portion of tall calendar durations. % Supported syntaxes: % T = TIME(D) % % See also CALENDARDURATION/TIME. % Copyright 2016 The MathWorks, Inc. td = tall.validateType(td, mfilename, {'calendarDuration'}, 1); tt = elementfun(@time, td); % Adaptor needs to be duration of same size as input. tt.Adaptor = copySizeInformation(... matlab.bigdata.internal.adaptors.getAdaptorForType('duration'), ... td.Adaptor); end