How to debug Error in returning value?

3 ビュー (過去 30 日間)
Shraddha Joshi
Shraddha Joshi 2016 年 4 月 25 日
コメント済み: Shraddha Joshi 2016 年 4 月 25 日
Could you please help ASAP? In the program attached below, I am getting the following error when I try to return the value of variable heart_rate calculated from pan_tompkin function to an array Heart_Rate
Error: File: pan_tompkin4.m Line: 135 Column: 15 Unbalanced or unexpected parenthesis or bracket.
Please help. Its urgent!!

回答 (1 件)

Guillaume
Guillaume 2016 年 4 月 25 日
The error is very clear:
Heart_Rate[:,K]
is not valid syntax. Possibly you meant
Heart_Rate(:,K)=heart_rate
Note that saying that something is urgent makes it less likely that people will help you. We're doing this on a voluntary basis, it's certainly not urgent for us.
  1 件のコメント
Shraddha Joshi
Shraddha Joshi 2016 年 4 月 25 日
I tried with the above syntax also, but then the error shown is
Subscripted assignment dimension mismatch.
Error in pan_tompkin4 (line 135) Heart_Rate(:,K)=Heart_Rate
So what exactly is the syntax mistake I am making in retrieving the value from function and storing it in that array?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by