Findpeaks loop value not saving separately
Ältere Kommentare anzeigen
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=load ('36019.mat');
signal(1,1:length(s.ans))=s.ans;
s=load ('35772.mat');
signal(1,1:length(s.ans))=s.ans;
load t.mat
S = [1 2]
for k=1:1:length(S)
figure;
[PkAmp, PkTime] = findpeaks(signal(k,:),t);
end
1 Kommentar
Ramesh Bala
am 10 Jun. 2019
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Spectral Estimation finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!