Home > atmlab > math > istensor3.m

istensor3

PURPOSE ^

ISTENSOR3 True for tensor3 variables.

SYNOPSIS ^

function bool = istensor3( a )

DESCRIPTION ^

 ISTENSOR3   True for tensor3 variables.

    Determines if a variable is a tensor3, that is, a numeric of size oxmxn 
    where o, n and m (even all) can be equal to 1.

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

istensor3.m

SOURCE CODE ^

0001 % ISTENSOR3   True for tensor3 variables.
0002 %
0003 %    Determines if a variable is a tensor3, that is, a numeric of size oxmxn
0004 %    where o, n and m (even all) can be equal to 1.
0005 %
0006 % FORMAT   bool = istensor3(a)
0007 %
0008 % OUT   bool   true if tensor3, else false.
0009 % IN    a      A variable of any data type.
0010 
0011 % 2005-03-16  Created by Patrick Eriksson.
0012 
0013 
0014 function bool = istensor3( a )
0015 
0016 bool = isnumeric( a )  &&  dimens(a) <= 3;
0017 
0018

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