필터 지우기
필터 지우기

1D interpolation of 3D matrix

조회 수: 2 (최근 30일)
Benjamin Karlsen
Benjamin Karlsen 2019년 3월 20일
Hi
I have a question regarding interpolation of 3d matrices.
So lets say I have A = [X Y Z] =
A(:,:,1) = [1, 1, V;
1, 7, V;
NaN,NaN,NaN
NaN,NaN,NaN];
A(:,:,2) = [2, 1, V;
2, 3, V;
2, 5, V;
2, 7, V];
A(:,:,3) = [3, 1, V;
3, 4, V;
3, 7, V;
NaN,NaN,NaN];
  • V is in this case just a measured value like temperature or velocity that changes in each point.
  • X and Y is a coordinate position and each matrix is fixed in X and has same length in Y but different resolution.
So I want to interpolate each matrix to have the same resolution. Most preferrably I only want the interpolation to be a linear interpolation of V considering the Y position and not X position.
How do I go about this? I would know what to do if I had a 2d matrix and only one value of V in each matrix, however I have stored 20 different values of V. Also for my problem I have a set of 21 and not 3 different matrixes where 3 different resolutions are used. Do I need to separate the parts of the matrix with different resolution or can I interpolate with everything stored in the same 3D matrix?
Thanks in advance!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by