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.

freqnum

Convert character vector frequency indicator to numeric frequency indicator

Syntax

nfreq = freqnum(sfreq)

Arguments

sfreq

UNKNOWN, Unknown, unknown, U, u

DAILY, Daily, daily, D, d

WEEKLY, Weekly, weekly, W, w

MONTHLY, Monthly, monthly, M, m

QUARTERLY, Quarterly, quarterly, Q, q

SEMIANNUAL, Semiannual, semiannual, S, s

ANNUAL, Annual, annual, A, a

Description

nfreq = freqnum(sfreq) converts a character vector frequency indicator into a numeric value.

Character Vector Frequency Indicator

Numeric Representation

UNKNOWN, Unknown, unknown, U, u

0

DAILY, Daily, daily, D, d

1

WEEKLY, Weekly, weekly, W, w

2

MONTHLY, Monthly, monthly, M, m

3

QUARTERLY, ly, quarterly, Q, q

4

SEMIANNUAL, Semiannual, semiannual, S, s

5

ANNUAL, Annual, annual, A, a

6

Introduced before R2006a

Was this topic helpful?