I am facing problem in below program.....
buttLoop3 is data signal having 30000x4 values
I want to find zero crossing on buttLoop3 in such a way that ti(k) return values of four different signal crossing zero value in 4 columns.....
for i = 1:4
y(i) = buttLoop3(:,i) ;
zci = @(v) find(v(:).*circshift(v(:), [-1 0]) <= 0);
xi = zci(y(i) );
for k = 1:numel(xi)-1
ti(k) = interp1(y(i)([xi(k) xi(k)+1]), t([xi(k) xi(k)+1]), 0);