This function plots a square, defined by:

- 1 square - left bottom corner in [m,n] and length of side "a"; all values are scalars
- 1 square - left bottom corner (LBC) and right upper corner (RUC) in [m,n]; all values are scalars
- n-squares- LBC and RUC in [m,n]; either LDR is vector 1x2 and RUC is matrix Nx2 or LDR is matrix and Nx2 and RUC is vector 1x2 or LDC and RUC are matrixes Nx2

Parameters

Parameter

Example:

This function draws a rectangle, defined by:

- 1 rectangle - LDC in [m,n] and length of side "a" and "b"; all values are scalars
- 1 rectangle - LDC and RUC in [m,n]; all values are scalars
- n-rectangles - LDC and RUC in [m,n]; either LDC is vector 1x2 and RUC is matrix Nx2 or LDC is matrix Nx2 and RUC is vector 1x2 or LDC and RUC are matrixes Nx2

Parameters

Parameter

Example:

download m-file

This function plots a triangle, which can be defined by 2 ways:

- 3 points in axes x,y
- 1 triangle - corner points A,B,C in [m,n];
*m,n*are scalars,*fmt*is optional - n-triangles - corner points A,B,C in [m,n]; either parameter
*m*is vector 1x3 and*n*is matrix Nx3 ro*m*is matrix Nx3 and*n*is vector 1x3 or*m*and*n*are matrixes Nx3 - sides and angles
- side,side,side - triangle defined by sides "a","b","c", type = "sss"
- angle,side,side - triangle defined by angle "alpha" and sides "b","c", type = "ass"
- side,angle,side - triangle defined by angle "beta" and sides "a","c", type = "sas"
- side,side,angle - triangle defined by angle "gama" and sides "a","b" type = "ssa"

Parameters m,n describe corners of the triangle in axes x,y.

Parameter

Parameter

Example:

download m-file

<<< 2. New function for Octplot | 2.2 Tetragon, n-square, circle >>> |

© 2008 David Prokop