findpeaks fails to execure in Cody coursework

1 次查看(过去 30 天)
The problem concerns the course:
Introduction to Digital Signal Processing, by Richard Radke; Lesson 2: Spectrum Representation of Signals
In particular in Lesson 2.1 and 2.2 the reference solution fails against the Test Suite with the following error:
================
Undefined function 'findpeaks' for input arguments of type 'double'.
Error in Test1 (line 3)
[pks,locs] = findpeaks(y);
=================
Also in student environment a copied correct solution fails the test.
In Matlab-online or in an computer-installed Matlab (2017b) the test (copied from coursework) works.
There is a way to use these lesson without changing the Test Suite deleting the call to findpeaks ??
best regards
Simone Orcioni
P.S.
In the same Test Suite also the function
ymat = chirp(t,0,t0,f0);
gives the error:
Undefined function 'chirp' for input arguments of type 'double'.
Error in Hidden test1

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Test Execution 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by