Interpolating between two 3d time dependent positions
이전 댓글 표시
I'm trying to interpolate between 3d position values seperated by a 1 minute timestep. I have an array of position data <x,y,z> of size [500,000 x 3]. Each row of 3 values <x,y,z> represents a point in 3d space at a specific time (ex. 2 minutes). I'm trying to interpolate between each value so that I have a timestep in my data of 1 second. So I want to generate 59 pts between minute 1 and minute 2. For example: If t1 = 1min, <x1,y1,z1> = <1,1,1> and t2 = 2min, <x2,y2,z2> = <2,2,2>, then t3 = 1min 30 seconds and <x3,y3,z3> might equal ~ <1.5,1.5,1.5> using a linear interpolation method. My inclination is to use interpn(). Could anyone direct me how to set this up?
댓글 수: 1
Tahariet Sharon
2023년 3월 8일
I have the same problem, only that instead of 3 points in space I have a whole 3D matrix in space at a given point.
I have 10 points in time for different configuations of the 3D matrix, and I want to interpolate several time points between each data point. How to go about this?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Interpolation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
