Use of findpeaks graphical output in app designer

7 visualizzazioni (ultimi 30 giorni)
Hello,
I wanted to use the graphical output of the findpeaks function of MATLAB, but I cannot manage to get the output in my graphe, as this line does not work.
findpeaks(app.UIAxes,data-y1,'MinPeakProminence',app.MinprominenceEditField.Value,'MinPeakWidth',app.MinmiddlewidthEditField.Value);
And if I remove the
app.UIAxes
part, I does open a new figure.
Thank you !
  1 Commento
Milad Cheraghzade
Milad Cheraghzade il 18 Lug 2019
Modificato: Milad Cheraghzade il 18 Lug 2019
Hello , I had the same problem today! And I just found the answer! Try to don't use hold on to plot two data (I mean the original data and the peak points which you are looking for)! Plot them in the same line. For example Plot ( [data1],'g',[data2],'rs') Where each data can be the pks and locs data as the output of findpeaks function Data1 =original data which could be as x data or x y data. Data 2 =[locs,pks]

Accedi per commentare.

Risposte (1)

Marcin Mróz
Marcin Mróz il 2 Giu 2019
Did You found solution to this problem?

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by