Measure distance or length between two arrays within a cellarray
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi all,
I've got a large range of data where i have written a script that groups the data into seperate arrays within a cellarray. Each array represents an occurance where the data hits a lower limit of 20, until an upper limit of 30 is hit. So each array has a range of values, where the first value in the array is 20 and final value is 30. Additionaly, the data is given in 1 minute intervals and each point represents a speed.
Most of the arrays have a very large timespan between consequtive arrays, however, some are very close together. The arrays that are very close together have to be converted into a single array which will include all points from each array, as well as the points that were inbetween the two arrays. This minimum length of time between each array is 30 minutes (points), where if the length between two adjacent arrays is less than 30, they are to be joined together and considred as a single array.
Any help would be greatly appreciated.
답변 (1개)
Amanjeet Pani
2022년 7월 13일
As i can understand the main problem here lies with finding distance between 2 arrays
so this seems like a interpolation problem. find this link here to go to the documentation page of the interp1() in matlab which will help you resolve the problem.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!