Predicting Mortality of ICU Patients: The PhysioNet/Computing in Cardiology Challenge 2012 1.0.0

File: <base>/sources/mmacas_at_seznam.cz/entry9/getTimeSeries.m (469 bytes)
function [time,value]=getTimeSeries(name, record);
    

time=[];value=[];

for i=2:length(record{1}),
    
    parameter=record{2}(i);
    
    if strcmp(parameter, name),
        
        %time format hh:mm changed to mm only
        thours=record{1}{i};
        time=[time;str2double(thours(1:2))*60+str2double(thours(4:5))];
        
        %Value 0f the parameter at the time
        value=[value;str2double(record{3}(i))];
    
    end    
end