Turn off the plot of findpeaks function
8 ビュー (過去 30 日間)
古いコメントを表示
Sara Cecilia Abecia Hernanz
2021 年 6 月 15 日
コメント済み: Sara Cecilia Abecia Hernanz
2021 年 6 月 15 日
Hello everyone,
I am using to analyse a set of spectra with the findpeaks function included in the Signla Processing Toolbox. I am interested in calculating the width and the prominence of the peaks identified by the function as well as their location and value. However, I just want the function to compute these values, but I do not want the function to plot the signal with the details of each one of the peaks. Is there a way to turn the plot off?
Thanks in advance!
Sara
0 件のコメント
採用された回答
KSSV
2021 年 6 月 15 日
You might be simply using the function findpeaks with data as input. Take the output.
data = [25 8 15 5 6 10 10 3 1 20 7];
findpeaks(data) % this will plot the figure
pks = findpeaks(data) % this will not plot
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!