The grid vectors are not strictly monotonic increasing.

if true
% code
endX Y T
1.00E-01 0.00E+00 8.74E+02
1.00E-01 2.89E-04 8.74E+02
1.00E-01 5.99E-04 8.72E+02
1.00E-01 9.33E-04 8.73E+02
1.00E-01 1.29E-03 8.73E+02
1.00E-01 1.68E-03 8.74E+02
1.00E-01 2.09E-03 8.76E+02
1.00E-01 2.54E-03 8.76E+02
1.00E-01 3.02E-03 8.78E+02
1.00E-01 3.53E-03 8.80E+02
1.00E-01 4.09E-03 8.82E+02
1.00E-01 4.69E-03 8.84E+02
1.00E-01 5.33E-03 8.87E+02
1.00E-01 6.02E-03 8.91E+02
1.00E-01 6.76E-03 8.94E+02
1.00E-01 7.56E-03 8.97E+02
1.00E-01 8.41E-03 8.99E+02
1.00E-01 9.34E-03 9.00E+02
1.00E-01 1.03E-02 9.00E+02
1.00E-01 1.14E-02 9.00E+02
1.00E-01 1.25E-02 9.00E+02
1.00E-01 1.38E-02 9.00E+02
1.00E-01 1.51E-02 9.00E+02
1.00E-01 1.65E-02 9.00E+02
This is small part of my data file which contains x,y and T. I want to interpolate my current data on these xq and yq.
xq=(0:0.2:100); yq=(0:0.04:20);
When I tried the command: a=interp2(x,y,temp,xq,yq,'cubic');
I got an error of non-monotonic function. Can you guys please help me, how to resolve it? Thanks in advance. Regard

Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Asked:

on 17 Feb 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!