QT Interval Measurement: The PhysioNet/Computing in Cardiology Challenge 2006 1.0.0

File: <base>/sources/roberto-sassi/findPreferito.m (414 bytes)
%~ findPreferito.m - Part of the trqt package submitted for the 2006 CinC challenge
%~ Copyright (C) 2006  DA Tironi, R Sassi and LT Mainardi
%~ This software is released under the terms of the GNU General
%~ Public License (http://www.gnu.org/copyleft/gpl.html).

function [preferito] = findPreferito(listaQT, start)

[listaQT2, map] = sort(listaQT);
preferito = map(round(size(listaQT, 1)/2)) + start - 1;