[qrs_amp_r​aw,qrs_i_r​aw,delay,f​il_ecg]=pa​n_tompkin(​val(1,:),f​s,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

Tags

Asked:

on 25 Jan 2016

Edited:

on 25 Jan 2016

Community Treasure Hunt

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

Start Hunting!