Products & Services Solutions Academia Support User Community Company

Learn more about Financial Toolbox   

datedisp - Display date entries

Syntax

datedisp(NumMat, DateForm)
CharMat = datedisp(NumMat, DateForm)

Arguments

NumMat

Numeric matrix to display.

DateForm

(Optional) Date format. See datestr for available and default format flags.

Description

datedisp(NumMat, DateForm) displays a matrix with the serial dates formatted as date strings, using a matrix with mixed numeric entries and serial date number entries. Integers between datenum('01-Jan-1900') and datenum('01-Jan-2200') are assumed to be serial date numbers, while all other values are treated as numeric entries.

CharMat is a character array representing NumMat. If no output variable is assigned, the function prints the array to the display.

Examples

NumMat = [730730, 0.03, 1200 730100;
          730731, 0.05, 1000 NaN]

NumMat =

   1.0e+05 *

    7.3073    0.0000    0.0120    7.3010
    7.3073    0.0000    0.0100       NaN

datedisp(NumMat)

01-Sep-2000   0.03   1200   11-Dec-1998   
02-Sep-2000   0.05   1000      NaN        

See Also

datenum, datestr

  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS