Where can I find this method?

I tried using the method "ecg". This is my error message, what I got. Undefined function 'ecg' for input arguments of type 'double'.
Now, I typed help ecg in the command window. This is what I got.
_ * *>> help ecg
ecg not found.
Use the Help browser search field to search the documentation, or type "help help" for help command options, such as help for methods.**_
What can I do to get rid of this problem? I tried it, to use it in my code.

1 Comment

Jan
Jan on 15 Mar 2017
Edited: Jan on 15 Mar 2017
The message means, that you do not have a function called "ecg" in your path. Why do you assume, that this function exists?

Sign in to comment.

Answers (1)

KSSV
KSSV on 15 Mar 2017

7 Comments

Ok, thank you. I never tried this, but what are the steps for downloading this file and installing it in my matlab? I have the 2016 version.
ecg is there in MATLAB 2015 itself. It should be there in your pc too. Show the code you called it.
Link directly can be downloaded. Read the documentation in there.
Jan
Jan on 15 Mar 2017
Edited: Jan on 15 Mar 2017
@KSSV: There is no ecg command in Matlab 2015. What do you mean?
@Jan Simon: When I type help ecg I get this: ecg Electrocardiogram (ecg) signal generator.
ecg(100) or some number giving some output.
@KSSV: You are right, I find e.g. "wform = ecg(500);" in the help text of filtfilt. But I cannot find docs for this command online. Even Google cannot find something useful for "Matlab ecg". Strange. Where do you find this function: which ecg?
KSSV
KSSV on 15 Mar 2017
Edited: KSSV on 15 Mar 2017
@Jan Simon: Yes...google leads to the link exchange. There is no documentation in google. Which says MATLAB\R2015a\toolbox\signal\sigdemos\ecg.m
Jan
Jan on 15 Mar 2017
Edited: Jan on 15 Mar 2017
Ah, yes, thanks. Then this command is a part of the demos and therefore it is not documented in Matlab's online docs. This detail might solve the OP's problem:
Buy and install the signal processing toolbox, then this command appears in the demos.
I think this discussion might solve the question. +1

Sign in to comment.

Categories

Tags

Asked:

on 15 Mar 2017

Edited:

Jan
on 15 Mar 2017

Community Treasure Hunt

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

Start Hunting!