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 件のコメント

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 ExchangeIntroduction 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