Functions | |
elseif (nargin==2) if(!(isscalar(p)&&p | |
endif else | print_usage () |
if (m==1) x | |
!assert (all(all(abs(y)< 20 *eps))) | |
!assert (all(all(abs(y)< 30 *eps))) | |
Variables | |
function | y |
endif [m, n] = size (x) | |
endif | r = rows (x) |
b = ((1 : r)' * ones (1, p + 1)) .^ (ones (r, 1) * (0 : p)) | |
endif endfunction!test | !N = 32 |
!x = (0:1:N-1)/N + 2 | |
!y = detrend(x) | |
!t = (0:1:N-1)/N |
elseif | ( | nargin | = =2 |
) |
if | ( | m | = =1 |
) |
!test !N = 32 |
!t = (0:1:N-1)/N |
!x = (0:1:N-1)/N + 2 |
!y = detrend(x) |
b = ((1 : r)' * ones (1, p + 1)) .^ (ones (r, 1) * (0 : p)) |
endif[m, n] = size (x) |
endif r = rows (x) |