MATLAB: How to find the time between two points on a signal. signal processing I need to find the time between the first and last exceedence of absolute 0.05g on earthquake accelerogram. Please guide how I can do that? Best Answer I'm just using a simulated signal, x, substitute you signal for x in the calls to find() x = 0.05*randn(100,1); idx1 = find(abs(x)>0.05,1,'first'); idx2 = find(abs(x)>0.05,1,'last'); Related SolutionsMATLAB: Find position of when 0 goes to 1 help strfindIt works with numbers too.X= rand(1,10)> 0.5X = 1×10 logical array 0 0 0 0 1 1 0 1 0 0strfind(X,[0 1])ans = 4 7 Related Question
Best Answer