Next: , Previous: , Up: Octave octarisk Classes   [Contents][Index]


4.2 Matrix.help

Octarisk Class: object = Matrix(id)
Octarisk Class: object = Matrix()

Class for setting up Matrix objects.

This class contains all attributes and methods related to the following Matrix types:

In the following, all methods and attributes are explained and a code example is given.

Methods for Matrix object obj:

Attributes of Matrix objects:

For illustration see the following example: A symmetric 3 x 3 correlation matrix is specified and one specific correlation for a set of components as well as the whole matrix is retrieved:


m = Matrix();
component_cell = cell;
component_cell(1) = 'INDEX_A';
component_cell(2) = 'INDEX_B';
component_cell(3) = 'INDEX_C';
m = m.set('id','BASKET_CORR','type','Correlation','components',component_cell);
m = m.set('matrix',[1.0,0.3,-0.2;0.3,1,0.1;-0.2,0.1,1]);
m.get('matrix')
corr_A_C = m.getValue('INDEX_A','INDEX_C')

Dependencies of class:

Matrix

Next: , Previous: , Up: Octave octarisk Classes   [Contents][Index]