Clear Filters
Clear Filters

How can I debug the error for generation of ECG Signals?

1 view (last 30 days)
I tried executing the code which is attached below. It was downloaded from Mathworks.com. And the error seeen was:
Undefined function 'p_wav' for input arguments of type 'double'.
Error in complete (line 103)
pwav=p_wav(x,a_pwav,d_pwav,t_pwav,li);

Answers (1)

Geoff Hayes
Geoff Hayes on 14 Mar 2016
Edited: Geoff Hayes on 14 Mar 2016
Shraddha - you need to download all of the files from Karthik Raviprakash's submission to the File Exchange. See the list of files from ECG simulation using MATLAB which includes the missing p_wav function that you require to avoid the above error. Just download the zip file, unpack it, and you should be able to execute the complete function.
  4 Comments
Seshankitha Paidakula
Seshankitha Paidakula on 3 Sep 2020
Hi Shraddha Im facing the same issue can you please tell me how you got the Output signal?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!