Navigation
Main Page
Random Page
Create a new Page
All Pages
Categories
Administration
File Management
Login/Logout
Language Selection
Your Profile
Create Account
Quick Search
Advanced Search »
Back
History
stack
'''stack'''(...) - Stack function Returns an vector or matrix formed by placing arguments top to bottom. Arguments are arrays having the same number of columns or they are scalars and column vectors. In the case of scalar values the stack function returns a column vector containing the list of arguments. [image|stack1|{UP}Functions/stack/stack1.png] In the next example three column vectors '''a''', '''b''', and '''c''' are input as arguments to the stack function. [image|stack2|{UP}Functions/stack/stack2.png] In order to obtain a matrix the vectors must be in row order. The three row vectors '''d''', '''f''', and '''g''' are input as arguments to the stack function. [image|stack3|{UP}Functions/stack/stack3.png] The row vectors can easily be translated to columns in the matrix by applying the matrix transpose to the stack function. [image|stack4|{UP}Functions/stack/stack4.png] See also '''[augment|augment]''' Return to '''[Functions|Functions]''' page
ScrewTurn Wiki
version 2.0.37. Some of the icons created by
FamFamFam
.