30 Apr 2009
24 Jun 2014)
Numerical computation with functions instead of numbers.
%RESAMPLING CHEBFUN resample option
% RESAMPLING ON forces the Chebfun constructor to sample a function at
% all Chebyshev points as it adapts the number of nodes needed for an
% accurate representation. This option is recommended when working with
% chebops or if the values of the function depend on the number of
% RESAMPLING OFF allows the constructor to sample only at new nodes
% whenever the number of nodes is doubled. This option is recommended
% when the evaluations are time consuming.
% RESAMPLING is OFF by default, by itself, displays the current splitting
% Copyright 2011 by The University of Oxford and The Chebfun Developers.
% See http://www.maths.ox.ac.uk/chebfun/ for Chebfun information.
disp('RESAMPLING is currently ON')
disp('RESAMPLING is currently OFF')
if strcmpi(on_off, 'on')
elseif strcmpi(on_off, 'off')
'Unknown resampling option: only ON and OFF are valid options.')