# Difference between revisions of "Formula plotting-matrices"

From Algebra.Com's Help

Line 1: | Line 1: | ||

+ | {{Formula}} | ||

+ | |||

+ | |||

See [http://www.algebra.com/services/rendering/regression.mpl?f=special.txt Examples]. | See [http://www.algebra.com/services/rendering/regression.mpl?f=special.txt Examples]. | ||

## Revision as of 15:07, 30 June 2005

See Examples.

To plot a matrix, use the following syntax:

matrix( siseX, sizeY, element_11, element_12, .... )

This draws a matrix of dimensions sizeX and sizeY. The quantity of elements should be, obviously, sizeX multiplied by sizeY.

Elements of the matrix are expressions of any complexity.

Example of a 2x3 **tall** matrix:

matrix( 2, 3, 1, 2, 3, 4, 5, 6 )

Note that **matrix** plots a matrix NOT enclosed in brackets. If you want it enclosed in brackets, please use brackets outside it:

( matrix( 2, 2, 1, 2, 3, 4 ) )

The only reason why these expressions span several lines of text is readability. My webserver does not care if your matrix( ... ) spans several lines or not, it ignores line breaks. So, matrix( 2, 2, 1, 2, 3, 4 ) would be just as valid to write, although it could be harder to read for a human.

See Examples.