From: us on
"Ali Y."
> > a hint:
> > - look at your data...
> >
> > i2=2;
> > b(i2-1):b(i2+1)
> > % ans = Empty matrix: 1-by-0
> >
> > us
>
> Hi us, thanks for your reply, but it doesn't work, i have already tried it before like
> >>YI=interp((a(i2-1):0.1:a(i2+1)),(b(i2-1):-0.1:b(i2+1)),XI);

well, YES - of course does it not work as i've tried to show you...
the second input to INTERP is empty(!), which is not well taken by the function...

% if the ANS = [], then
interp(1,[],10)
%{
??? Operands to the || and && operators must be convertible to logical
scalar values.
Error in ==> interp at 44
if l < 1 || r < 1 || cutoff <= 0 || cutoff > 1
%}

us