[qrs_amp_raw,qrs_i_raw,delay,fil_ecg]=pan_tompkin(val(1,:),fs,1);
Show older comments
What does this step signify val(1,:)?
Answers (1)
The code
val(1,:)
returns the entire first row of the array val, using very basic matrix indexing. Here is an example:
>> val = randi(9,4)
val =
5 7 7 7
1 7 9 8
9 9 8 8
2 8 1 4
>> val(1,:)
ans =
5 7 7 7
This is a very basic MATLAB concept that is covered in the introductory tutorials, which are recommended for all beginners learning MATLAB:
Categories
Find more on Language Fundamentals in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!