Please add more detail to your problem description, using grammar, in particular. What are the inputs, what are the outputs? Please keep the standards up.
The best one without using strings!
This solution works in R2011b but returns an error message with 12a Prerelease:
Error in interp1>sanitycheckmethod (line 416)
if isempty(method)
Output argument "methodname" (and maybe others) not assigned during call to
"C:\MATLAB\SOF\r2012aprerelease\toolbox\matlab\polyfun\interp1.m>sanitycheckmethod".
Error in interp1 (line 110)
method = sanitycheckmethod(varargin{end-1});
Find all elements less than 0 or greater than 10 and replace them with NaN
13135 Solvers
6313 Solvers
Generate N equally spaced intervals between -L and L
570 Solvers
2582 Solvers
Solving Quadratic Equations (Version 1)
429 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!