pvLength#

Purpose#

Returns the length of a parameter vector.

Format#

n = pvLength(p1)#
Parameters:

p1 (struct) – an instance of structure of type PV

Returns:

n (scalar) – length of parameter vector in p1.

Examples#

// Declare 'p1' as an instance of a 'PV' structure
struct PV p1;

// Initialize 'p1' with default values
p1 = pvCreate;

x = { 1 2,
      3 4 };

// 1's indicate elements to pack into 'p1' parameter vector
mask = { 1 1,
         0 0 };

p1 = pvPackm(p1, x, "X", mask);

pvLength(p1)

Source#

pv.src