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 comentario

Jan
Jan el 15 de Mzo. de 2017
Editada: Jan el 15 de Mzo. de 2017
The message means, that you do not have a function called "ecg" in your path. Why do you assume, that this function exists?

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 15 de Mzo. de 2017

1 voto

7 comentarios

Denny Muttathil
Denny Muttathil el 15 de Mzo. de 2017
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.
KSSV
KSSV el 15 de Mzo. de 2017
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 el 15 de Mzo. de 2017
Editada: Jan el 15 de Mzo. de 2017
@KSSV: There is no ecg command in Matlab 2015. What do you mean?
KSSV
KSSV el 15 de Mzo. de 2017
@Jan Simon: When I type help ecg I get this: ecg Electrocardiogram (ecg) signal generator.
ecg(100) or some number giving some output.
Jan
Jan el 15 de Mzo. de 2017
@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 el 15 de Mzo. de 2017
Editada: KSSV el 15 de Mzo. de 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 el 15 de Mzo. de 2017
Editada: Jan el 15 de Mzo. de 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

Iniciar sesión para comentar.

Categorías

Etiquetas

Preguntada:

el 15 de Mzo. de 2017

Editada:

Jan
el 15 de Mzo. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by