Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
de:public:user_s_documents:icon-l:applications:vector_matrix [2015/01/30 07:33] genzmehr |
de:public:user_s_documents:icon-l:applications:vector_matrix [2015/01/30 08:07] (aktuell) genzmehr |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== vector and matrix ====== | + | ====== Vector and Matrix ====== |
+ | ===== Important facts ===== | ||
+ | * vector and matrix function blocks have a rewriting input | ||
+ | * the block numbering is therefore very important | ||
+ | * memory allocation has to be done by using the //Create// block or by variable (automatic allocation) | ||
===== Basic vector and matrix handling ===== | ===== Basic vector and matrix handling ===== | ||
Vecotrs are a special form of matrices. The handling in iCon-L is the same, therefore the following examples are shown for matrices. | Vecotrs are a special form of matrices. The handling in iCon-L is the same, therefore the following examples are shown for matrices. | ||
+ | ==== By line ==== | ||
+ | |||
+ | Normaly you shoud use them by connecting the different functionblocks by line | ||
+ | |||
+ | {{:de:public:user_s_documents:icon-l:applications:matrixbyline.png?direct&300 |Connect via line}} | ||
+ | |||
+ | ==== Definition by connection ==== | ||
+ | Another way is to use variables, for the same handling, the variable has to defined as //definition by connection (reference)// | ||
+ | |||
+ | {{:de:public:user_s_documents:icon-l:applications:matrixbyvariablereference.png?direct&400 |}} | ||
+ | {{ :de:public:user_s_documents:icon-l:applications:variablereference.png?direct&400 |}} | ||
+ | |||
+ | ==== Automatic allocation ==== | ||
+ | If you define the variable with automatic allocation and you want to initialize the matrix you do it like this | ||
+ | |||
+ | {{:de:public:user_s_documents:icon-l:applications:matrixbyautomaticallocation.png?direct&400 |}} | ||
+ | {{ :de:public:user_s_documents:icon-l:applications:variableautomaticallocation.png?direct&390 |}} | ||
+ | |||
+ | <note important>Do not use the //Create Matrix// block</note> | ||
+ | ==== File operation ==== | ||
+ | |||
+ | If you want to load a saved matrix from a file system, at first you have to allocate the memory by using the //Create Matrix// block | ||
+ | |||
+ | {{:de:public:user_s_documents:icon-l:applications:matrixloadfromfile.png?direct&300 |}} | ||
+ | |||