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

Jan
Jan 2017년 3월 15일
편집: Jan 2017년 3월 15일
The message means, that you do not have a function called "ecg" in your path. Why do you assume, that this function exists?

댓글을 달려면 로그인하십시오.

답변 (1개)

KSSV
KSSV 2017년 3월 15일

1 개 추천

댓글 수: 7

Denny Muttathil
Denny Muttathil 2017년 3월 15일
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 2017년 3월 15일
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 2017년 3월 15일
편집: Jan 2017년 3월 15일
@KSSV: There is no ecg command in Matlab 2015. What do you mean?
KSSV
KSSV 2017년 3월 15일
@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 2017년 3월 15일
@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 2017년 3월 15일
편집: KSSV 2017년 3월 15일
@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 2017년 3월 15일
편집: Jan 2017년 3월 15일
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

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

질문:

2017년 3월 15일

편집:

Jan
2017년 3월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by