Functions | |
if (nargin==1) sz | |
else | print_usage () |
endif endfunction | !assert (isvector(1)) |
!assert (isvector([1;2;3])) | |
!assert (!(isvector([]))) | |
!assert (!(isvector([1, 2;3, 4]))) | |
!assert ((isvector("t"))) | |
!assert ((isvector("test"))) | |
!assert (!(isvector(["test";"ing"]))) | |
!assert ((isvector(s))) | |
!error | isvector () |
!error | isvector ([1, 2], 2) |
Variables | |
function | retval |
!test | !warn_str_to_num = 0 |
!test!s | a = 1 |
!assert | ( | (isvector(s)) | ) |
!assert | ( | ! | isvector(["test";"ing"]) | ) |
!assert | ( | (isvector("test")) | ) |
!assert | ( | (isvector("t")) | ) |
!assert | ( | ! | isvector([1, 2;3, 4]) | ) |
!assert | ( | ! | isvector([]) | ) |
!assert | ( | isvector([1;2;3]) | ) |
endif endfunction !assert | ( | isvector(1) | ) |
if | ( | nargin | = =1 |
) |
!error isvector | ( | 2 | ) |
!error isvector | ( | ) |
else print_usage | ( | ) |
!test !warn_str_to_num = 0 |
!test ! s a = 1 |