**CIGAL Reference Manual, Chapter 3 (Functions): matrix** ===== Matrix -- Allocate memory for a matrix or image variable ===== **usage: matrix_varb = matrix(xdim,ydim)** MATRIX is used to allocate memory space to a matrix variable that was not allocated space when originally declared. You can also use MATRIX to change the dimensions (and allocate new memory space) for such a matrix variable. You cannot use MATRIX, however, to set or change the memory allocated to a variable if the dimensions of the variable were specified during its initial declaration. **See Also:**\\ [[jvs:cigal:manual:chapter3:array|ARRAY(3)]], [[jvs:cigal:manual:chapter2:declare|DECLARE(2)]], [[jvs:cigal:manual:chapter1:memory|MEMORY(1)]], [[jvs:cigal:manual:chapter3:solid|SOLID(3)]], [[jvs:cigal:manual:chapter1:variables|VARIABLES(1)]] [[jvs:cigal|CIGAL Home]], [[jvs:cigal:manual|CIGAL Manual]], [[jvs:cigal:manual:chapter3|Functions List]], [[jvs:cigal:manual:help|Manual Help]]