vtypecv#

Purpose#

Returns the types of the elements of a data buffer constructed with vput().

Format#

cv = vtypecv(dbuf)#
Parameters:

dbuf (Nx1 vector) – a data buffer containing various strings and matrices.

Returns:

cv (Kx1 character vector) – containing the types of the elements of dbuf.

Examples#

// Get the types of items in a data buffer
dbuf = vput(0, rndn(2, 2), "X");
dbuf = vput(dbuf, "hello", "msg");
cv = vtypecv(dbuf);
print cv;
// Types: 6 = matrix, 13 = string

See also

Functions vget(), vput(), vread(), vnamecv()