[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60465] [octave forge] (signal) findpeaks shou
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #60465] [octave forge] (signal) findpeaks should plot data |
Date: |
Thu, 29 Apr 2021 05:51:58 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0 |
Follow-up Comment #2, bug #60465 (project octave):
Found a solution which, solves this problem.
All code changes
if (nargout == 0)
plot(data)
hold on;
[pks idx] = findpeaks(data);
scatter(idx, pks,"v", 'MarkerFaceColor',[0 0 1], "filled")
clear pks;
else
New patch is attached.
(file #51333)
_______________________________________________________
Additional Item Attachment:
File name: findpeaks.patch Size:15 KB
<https://file.savannah.gnu.org/file/findpeaks.patch?file_id=51333>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60465>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/