pvUnpack#
Purpose#
Unpacks matrices stored in a structure of type PV.
Format#
- x = pvUnpack(p1, m)#
- Parameters:
p1 (struct) – an instance of structure of type
PVm (string) – name of matrix, or integer, index of matrix.
- Returns:
x (matrix or array) – MxN general matrix or MxM symmetric matrix or N-dimensional array
Examples#
// Create and populate a PV structure
struct PV p1;
p1 = pvCreate;
p1 = pvPack(p1, 1|2|3, "beta");
p1 = pvPack(p1, 0.5~0.8, "gamma");
// Unpack matrices by name
beta = pvUnpack(p1, "beta");
gamma = pvUnpack(p1, "gamma");
print beta;
print gamma;
Source#
pv.src