17 lines
414 B
Matlab
17 lines
414 B
Matlab
close all
|
|
% histogram
|
|
figure()
|
|
x = randn(2000,1);
|
|
hist(x, 50);
|
|
h = findobj(gca, 'Type','patch');
|
|
set(h(1), 'FaceColor',[.2,.2,.2], 'EdgeColor','w', 'linewidth',2)
|
|
grid('off')
|
|
h = gridxy([],get(gca,'ytick'),'color','w','linewidth',2)
|
|
box('off');
|
|
uistack(h, 'top')
|
|
xlabel('Data')
|
|
ylabel('Count')
|
|
set(gcf, 'PaperUnits', 'centimeters');
|
|
set(gcf, 'PaperSize', [11.7 9.0]);
|
|
set(gcf, 'PaperPosition',[0.0 0.0 11.7 9.0]);
|