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, s] = TimeLabl( t0 ) [t, c, u, s] = 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 s (1,1) Time scale factor, t = t0/s --------------------------------------------------------------------------
Back to the Common Module page