Functions | |
endif | if (isscalar(k)) if(k< 1) retval |
id | tmp () |
endif else | error ("sylvester_matrix: expecting scalar argument") |
endif endfunction | !assert ((sylvester_matrix(1)==[1, 1;1,-1]%!&&(sylvester_matrix(2)%!==[1, 1, 1, 1;1,-1, 1,-1;1, 1,-1,-1;1,-1,-1, 1]))) |
!error | sylvester_matrix ([1, 2;3, 4]) |
!error | sylvester_matrix (1, 2) |
Variables | |
function | retval |
else | tmp = sylvester_matrix (k-1) |
endif endfunction !assert | ( | (sylvester_matrix(1)==[1, 1;1,-1]%!&&(sylvester_matrix(2)%!==[1, 1, 1, 1;1,-1, 1,-1;1, 1,-1,-1;1,-1,-1, 1])) | ) |
!error sylvester_matrix | ( | 1 | , | |
2 | ||||
) |
error sylvester_matrix | ( | ) |
id tmp | ( | ) | [virtual] |
retval |
Initial value:
sylvester_matrix (k) if (nargin != 1) print_usage ()
tmp = sylvester_matrix (k-1) |