filename='AAA'load = xlsread(filename,1,'C:C'); extension = xlsread(filename,1,'D:D');zci = @(v) find(v(:).*circshift(v(:), [-1 0]) <= 0); % Returns Approximate Zero-Crossing Indices Of Argument Vector
zxidx= zci(load); figureplot(extension, load)hold onplot(s(zxidx),l(zxidx),'o')
As you can see from the plot, it generally capture the targeted data well. But they are not correct.
I feel like I need to control the zero-crossing indexing function, but I am challenging how to even fine-tune it further.
Thank you.
Best Answer