% program to import and thresholds for adult and child 
% The first line is an header and is skipped

Adult = importdata('C:\Users\Luca Milanesi\Desktop\codice\adult.txt',' ',1);
U_adult = Adult.data(:,1);
h_adult = Adult.data(:,2);
Child = importdata('C:\Users\Luca Milanesi\Desktop\codice\child.txt',' ',1);
U_child = Child.data(:,1);
h_child = Child.data(:,2);

Umax = round(max(U_adult));
passo_U = 0.5;
passo_h = 0.2;
spessore_simbolo = 6

figure(1)
plot(U_adult,h_adult,'.','MarkerSize',spessore_simbolo)
hold on
plot(U_child,h_child,'.','Color','Red','MarkerSize',spessore_simbolo)
hold on


Xlabel('{\itU} [m/s]','FontName','Times New Roman','FontSize',10);
Ylabel('{\ith} [m]','FontName','Times New Roman','FontSize',10);
set(gca,'Xtick',[0:passo_U:Umax],'Ytick',[0:passo_h:2])

%formattazione delle decimali
n=get(gca,'ytick');
set(gca,'yticklabel',sprintf('%.2f |',n'));
grid on
