"interpn" - problem with extrapval

  • Follow


Hi all!
I am using ''interpn'' function for 4D look-up table.
Here is a line of code:

out = interpn(X1,X2,X3,X4,M,in1,in2,in3,in4, 'linear', 1.2); % 4D linear interpolation

The "extrapval" is set to 1.2 as you may see. However, it comes as output only only for 3 arguments out of four being out of range: for in1, in3, and in4. 

For some reason when my second argument is out of range, linear extrapolation is used instead of preset "extrapval".

All four arguments are equally spaced, monotonically increasing.

Any ideas?
0
Reply Bill 8/18/2010 6:58:19 PM


0 Replies
633 Views

(page loaded in 0.174 seconds)

Similiar Articles:









7/23/2012 9:45:21 AM


Reply: