function x = line2feats(d)
% -- Turns a line read by fgetl into double features
%IN: d: string, probably obtained using fgetl
    w = regexp(d, ',', 'split');
    n = length(w)-1;
    x = zeros(1, n);
    for i = 1:n
       x(i) = str2double(w{i}); 
    end
    
end