Measure distance or length between two arrays within a cellarray

2 次查看(过去 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
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.

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by