Functions | |
endif | if (nargin< 3) s |
!assert (delta, expected, 0.00001)%!test%!x | |
!assert (y1, y, sqrt(eps))%!assert(yn | |
sqrt (eps))%!test%!p | |
!assert (x, polyval(p, x), eps)%!x | |
Variables | |
function [y, dy] | |
endif | if (!(isvector(p)||isempty(p))) error("polyval |
endif!test | !r = 0:10:50 |
!p = poly (r) | |
!x = linspace(0,50,11) | |
!y = polyval(p,x) + 0.25*sin(100*x) | |
!expected | |
!y1 = polyfit (x, y, numel (x) - 1) polyval (p, x) | |
!yn = polyval (pn, x, [], mu) | |
y |
!assert | ( | x | , | |
polyval(p, x) | , | |||
eps | ||||
) |
!assert | ( | y1 | , | |
y | , | |||
sqrt(eps) | ||||
) |
endif if | ( | ) |
sqrt | ( | eps | ) |
!p = poly (r) |
endif !test !r = 0:10:50 |
!x = linspace(0,50,11) |
!y = polyval(p,x) + 0.25*sin(100*x) |
!y1 = polyfit (x, y, numel (x) - 1) polyval (p, x) |
endif if(!(isvector(p)||isempty(p))) error("polyval |
y |