No BSD License  

Highlights from
MatPlanWDM v0.5

image thumbnail
from MatPlanWDM v0.5 by Pablo Pavon MariƱo
Educational network planning tool for the RWA problem in WDM networks (MILP and heuristic based)

minute(d)
function m = minute(d) 
%MINUTE Minute of date or time. 
%   M = MINUTE(D) returns the minute given a serial date number or a 
%   date string, D. 
% 
%   For example, m = minute(728647.559054842) or  
%   m = minute('19-Dec-1994, 13:25:08.17') returns m = 25. 
%    
%   See also DATEVEC, SECOND, HOUR. 
 
%       Author(s): C.F. Garvin, 2-23-95 
%       Copyright 1995-2002 The MathWorks, Inc.  
%       $Revision: 1.6 $   $Date: 2002/04/14 21:51:09 $ 
 
if nargin < 1 
  error('Please enter D.') 
end 
if isstr(d) 
  d = datenum(d); 
end 
c = datevec(d(:));   % Generate date vectors from dates 
m = c(:,5) ;     % Extract minute 
if ~isstr(d) 
  m = reshape(m,size(d)); 
end

Contact us at files@mathworks.com