Findpeaks loop value not saving separately
2 views (last 30 days)
I'm using findpeaks and trying to save the AMP values separately.But my loop is saving only the last value even though it runs in a loop.So,instead of 2*101 value I,get the last value 1*101 ??
S = [1 2]
[PkAmp, PkTime] = findpeaks(signal(k,:),t);
LO on 10 Jun 2019
not sure what you want to do but I try to guess.
you can use the function "diff" between elements of different matrices (for comparing elements having the same index, you can use another for loop)