4-D Interpolation using interpn
조회 수: 2(최근 30일)
표시 이전 댓글
Hi,
I have 4 vectors as input and 1 vector as output. I want to do an interpolation following the instructions given here:
https://www.mathworks.com/help/matlab/ref/interpn.html --> Vq = interpn(X1,X2,X3,X4,V,Xq1,Xq2,Xq3,Xq4)
where Xq1, ..., Xq4 are scalars and equal to Xqi = Xi(1) (it is just a test).
However, I got the following error:
Interpolation requires at least two sample points for each grid dimension.
If I look at section 4-D Interpolation, it can be seen that 4D grids are constructed and after these points are passed through the function and a 4D structure is obtained for V.
In my case, I don't have a function. I just have a vector for the output V.
How I can make it work with my vector type of data?
답변(0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!