Difference between revisions of "Formula plotting-matrices"

From Algebra.Com's Help
Jump to: navigation, search
Line 6: Line 6:
 
To plot a matrix, use the following syntax:
 
To plot a matrix, use the following syntax:
  
  matrix( siseX, sizeY,
+
  matrix( rows, columns,
 
   element_11, element_12,
 
   element_11, element_12,
 
   ....
 
   ....
Line 17: Line 17:
 
Example of a 2x3 '''tall''' matrix:
 
Example of a 2x3 '''tall''' matrix:
  
  matrix( 2, 3,  
+
  matrix( 3, 2,  
 
   1, 2,  
 
   1, 2,  
 
   3, 4,  
 
   3, 4,  

Revision as of 16:04, 14 September 2005



See Examples.

To plot a matrix, use the following syntax:

matrix( rows, columns,
  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( 3, 2, 
  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.