Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Math Forum
»
Discussions
»
Software
»
comp.softsys.matlab
Notice: We are no longer accepting new posts, but the forums will continue to be readable.
Topic:
griddedInterpolant with three four dimensional arrays
Replies:
3
Last Post:
Apr 10, 2013 3:34 PM




griddedInterpolant with three four dimensional arrays
Posted:
Apr 10, 2013 12:20 PM


Hello
The p here stands for pressure. Array p_1 has dimension has southnorth, westeast, vertical, and time dimensions.
p_2 has the same dimensions and is the same size as p_2 but has a different set of pressure data.
I want to find the pressure levels of p_1 in the p_2 array because I have another array that contains ozone (I'll call this array o3). The ozone data corresponds with p_1.
I tried the following,
new_p = griddedInterpolant(p_2, p_1, o3);
I get the following error: Error using griddedInterpolant The nubmer of input coordinate arrays does not equal the number of dimensions (NDIMS) of these arrays.
I used this function based on directions from the site http://www.mathworks.com/help/matlab/ref/griddedinterpolantclass.html F = griddedInterpolant(X1,X2,...,Xn,V)



