You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
506 B
17 lines
506 B
#
|
|
# Copyright 2022 Philipp Schönberger - mail@phschoen.de
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# See <http://www.gnu.org/licenses/>.
|
|
function minis = local_minimas( D )
|
|
minis = []
|
|
for i = [1:length(D)-2]
|
|
if D(i) > D(i+1) && D(i+1) < D(i+2)
|
|
minis = [minis (i+1)]
|
|
endif
|
|
end
|
|
end
|