www.delorie.com/gnu/docs/octave/octave_52.html   search  
 
Buy GNU books!


GNU Octave

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.3 Predicates for Numeric Objects

Function File: is_matrix (a)
Return 1 if a is a matrix. Otherwise, return 0.

Function File: is_vector (a)
Return 1 if a is a vector. Otherwise, return 0.

Function File: is_scalar (a)
Return 1 if a is a scalar. Otherwise, return 0.

Function File: is_square (x)
If x is a square matrix, then return the dimension of x. Otherwise, return 0.

Function File: is_symmetric (x, tol)
If x is symmetric within the tolerance specified by tol, then return the dimension of x. Otherwise, return 0. If tol is omitted, use a tolerance equal to the machine precision.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003