필터 지우기
필터 지우기

Hi, I am applying findpeaks function to find the peaks of an oscilloscope signal but in the peak plot graph it is automatically changing the x-label with a large difference.

조회 수: 22 (최근 30일)
Can there be any command so that x-label will not change and it will remain same as my signal plot as it is creating a lot of confusion . please help me on an urgent note.

채택된 답변

Diego Caro
Diego Caro 2024년 7월 10일 6:27
Use xlim.

추가 답변 (1개)

David Goodmanson
David Goodmanson 2024년 7월 9일 20:21
편집: David Goodmanson 2024년 7월 9일 20:46
Hi Rikita, if you use findpeaks(y,x) where x is the x axis (linear or log scale) whose min and max match the oscilloscope trace and which has the same number of elements as y, i.e. either the x array output of the scope or linspace(xmin,xmax,numel(y)) or logspace(xmin,xmax,numel(y)), you should get the correct results for the peaks. Or is it some other problem, such as the text labeling?

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by