Predicting Mortality of ICU Patients: The PhysioNet/Computing in Cardiology Challenge 2012 1.0.0
(897 bytes)
function plot_2d(data1,data2,DATA,IHD,ALL_CATEGORIES)
% plots pairs of data in 2d
%data1=data1(:,5:end);
%ALL_CATEGORIES=ALL_CATEGORIES(5:end);
num_params=size(data1,2);
for param_idx=1:num_params
% mean_all=MEAN_DATA_ALL(:,param_idx);
for param_idx2=param_idx:num_params
figure(param_idx+param_idx2+5)
scatter(data1(IHD==0,param_idx),data1(IHD==0,param_idx2),'xr')
hold on
scatter(data1(IHD==1,param_idx),data1(IHD==1,param_idx2),'ob')
xlabel([ALL_CATEGORIES{param_idx}]);
ylabel([ALL_CATEGORIES{param_idx2}]);
end
% data = rand(1, 100);
% [N, X] = hist(data, 0:0.1:1);
%
% subplot(2, 1, 1);
% hist(data, 0:0.1:1);
%
% subplot(2, 1, 2);
% bar(X, N./sum(N), 1);
end
end