Home > atmlab > math > istensor0.m

istensor0

PURPOSE ^

ISTENSOR0 True for scalar (tensor 0) variables.

SYNOPSIS ^

function bool = istensor0( a )

DESCRIPTION ^

 ISTENSOR0   True for scalar (tensor 0) variables.

    Determines if a variable is a scalar, that is, a numeric of size 1x1.

 FORMAT   bool = istensor0(a)
        
 OUT   bool   true if matrix, else false.
 IN    a      A variable of any data type.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

istensor0.m

SOURCE CODE ^

0001 % ISTENSOR0   True for scalar (tensor 0) variables.
0002 %
0003 %    Determines if a variable is a scalar, that is, a numeric of size 1x1.
0004 %
0005 % FORMAT   bool = istensor0(a)
0006 %
0007 % OUT   bool   true if matrix, else false.
0008 % IN    a      A variable of any data type.
0009 
0010 % 2005-03-16  Created by Patrick Eriksson.
0011 
0012 
0013 function bool = istensor0( a )
0014 
0015 bool = isnumeric( a )  &&  isscalar(a);

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005