Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

datedisp

Display date entries

Syntax

Description

example

datedisp(NumMat) displays a matrix with the serial dates formatted as date character vectors, 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.

example

datedisp(NumMat,DateForm), using the optional argument DateForm, displays a matrix with the serial dates formatted as date character vectors, 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.

example

CharMat = datedisp(NumMat,DateForm) returns CharMat, character array representing NumMat. If no output variable is assigned, the function prints the array to the display.

Examples

collapse all

This example shows how to display a matrix with the serial dates formatted as date character vectors.

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

datedisp(NumMat)
01-Sep-2000   0.03   1200   11-Dec-1998   
02-Sep-2000   0.05   1000      NaN        

Related Examples

Input Arguments

collapse all

Numeric matrix to display, specified as a serial date numbers.

Data Types: double

Date format, specified as a scalar character vector to indicate the format of text representing dates. See datestr for available and default format flags.

Data Types: char

Output Arguments

collapse all

Character array representing NumMat, returned as an array of date character vectors. If no output variable is assigned, the function prints the array to the display.

See Also

|

Introduced before R2006a

Was this topic helpful?