Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Why I am unable to use 3-D interpolation ? I have data for a few points and I want to use it for interpolation for all the points in betwwen?
조회 수: 2 (최근 30일)
이전 댓글 표시
The code is as follows:
cylinder_1=[2,8];
speed=[0,800,1000];
power=[1,137,155];
Values(:,:,1)=[0,0,0;0,2,8];
Values(:,:,137)=[0,0,0;0,-4,0];
Values(:,:,155)=[0,0,0;0,0,-7];
[X,Y,Z]=meshgrid(speed,cylinder,power);
V=interp3(X,Y,Z,Values,2,800,137);
When I use interp3 function, I get the following error message:
Error using griddedInterpolant The grid was created from grid vectors that were not strictly monotonic increasing.
Error in interp3 (line 142) F = griddedInterpolant(X, Y, Z, V, method,extrap);
When I use the command "griddedInterpolant" instead of "interp3" I get the following error message:
Error using griddedInterpolant The number of input coordinate arrays does not equal the number of dimensions (NDIMS) of these arrays.
Basically, I have values only for 2 cylinders, 3 speeds and 3 powers. I want to linearly interpolate for rest of the data between these values.
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!