Count


Description

Counts elements in a vector.

Syntax

int Count(vd[,int n])

Parameters

vd

A specified column in Origin worksheet.

n

An integer value, typically optional
0 (default) Counts the number of elements in the vector, size of the vector
1 Counts the number of Numeric Values
2 Counts the number of Missing Values

Return

Return the number of specified object by n.

Example

int dd=count(col(a),2);
dd=; //Should return the number of missing values in col(A).