pvList

Purpose

Retrieves names of packed matrices in structure of type PV.

Format

n = pvList(p1)
Parameters:

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

Returns:

n (Kx1 string vector) – names of packed matrices.

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);

pvList(p1)

Source

pv.src