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});
Return the largest number that is adjacent to a zero
3822 Solvers
Back to basics 21 - Matrix replicating
1067 Solvers
Make an awesome ramp for a tiny motorcycle stuntman
341 Solvers
419 Solvers
07 - Common functions and indexing 6
364 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!