Specific change points in large dataset
5 ビュー (過去 30 日間)
Hello everyone. I am new to matlab and trying to solve an assignment.
I have a large dataset with 3523873x1 size. (attached data)
I am trying to find the points (green circles).
I have tried using
z = ischange(df_10s_ufreq,'linear', 'MaxNumChanges',5);
z_index = find(z);
I could not get to the exact positions and it is also taking 2~3 minutes.
I am in search of better solutions and I will be thankful for the help.
回答 (1 件)
prasanth s 2019 年 10 月 17 日
Here is one of the methods using 'diff' function.
use following code to get all the difference values and plot those values to findout an limit value to cut the lowermost spike.
Let we take the limit value '-0.5e-5'.
use following code to get all indices below the limit value.
Again apply 'diff' and find initial change of spike. it will return desired indices.