Navigation

Operators and Keywords

Function List:

C++ API

isscalar.m File Reference


Functions

else print_usage ()
endif endfunction !assert (isscalar(1))
 !assert (!(isscalar([1, 2])))
 !assert (!(isscalar([])))
 !assert (!(isscalar([1, 2;3, 4])))
 !assert ((isscalar("t")))
 !assert (!(isscalar("test")))
 !assert (!(isscalar(["test";"ing"])))
 !assert ((isscalar(s)))
!error isscalar ()
!error isscalar (1, 2)

Variables

function retval
!test !warn_str_to_num = 0
!test!s a = 1

Function Documentation

!assert ( (isscalar(s))   ) 

!assert ( isscalar(["test";"ing"])  ) 

!assert ( isscalar("test")  ) 

!assert ( (isscalar("t"))   ) 

!assert ( isscalar([1, 2;3, 4])  ) 

!assert ( isscalar([])  ) 

!assert ( isscalar([1, 2])  ) 

endif endfunction !assert ( isscalar(1)   ) 

!error isscalar ( ,
 
)

!error isscalar (  ) 

else print_usage (  ) 


Variable Documentation

!test !warn_str_to_num = 0

!test ! s a = 1

function retval

Initial value:

 isscalar (x)

  if (nargin == 1)
    retval = numel (x) == 1