Path: Common/Graphics
% Generates a time label given the maximum value of t and rescales t. If two arguments are entered it computes the time series t as t = (0:(nSim-1))*dT The available units are (years,months,weeks,days,hours,minutes,seconds) Years and months are mean. -------------------------------------------------------------------------- Form: [t, c, u] = TimeLabl( t0 ) [t, c, u] = TimeLabl( nSim, dT ) -------------------------------------------------------------------------- ------ Inputs ------ t0 (1,:) Time (sec) - or - nSim (1,1) Number of time steps dT (1,1) Time step (sec) ------- Outputs ------- t (1,:) Time (new units) c (1,:) Label string, 'Time = (units)' u (1,:) Units of time --------------------------------------------------------------------------
Back to the Common Module page