%~ 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;