Hi. I can't plot the x axis data in findpeaks plot?
이전 댓글 표시
Thereby I cant find the locs of the peaks for which I cant find out the peakwidth. I need to find out the alternative peak distance e.g stick slip from the graph. I am attaching the data file and command file that I was using.
data=xlsread('r 1 1.xlsx');
x = data(:,1);
dx = x(2) - x(1);
y = data(:,2);
plot(x,y,'marker','d','MarkerSize',2);title('Pull-out Resistance vs Displacement','fontsize',20)
xlabel('Displacement, mm','fontsize',16)
ylabel('Force, N','fontsize',16)
pks=findpeaks(x,y)
%[pks,loca]=findpeaks(x,y)
답변 (1개)
Adam
2017년 7월 13일
pks=findpeaks(x,y)
is not a supported syntax (assuming the variables are named sensibly)
[___] = findpeaks(data,x)
is the syntax you would seem to want, as described in
doc findpeaks
I don't really understand your question though apart from that.
카테고리
도움말 센터 및 File Exchange에서 Descriptive Statistics에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!