%distriang.m
%distribuzione triangolare

figure(1);
clf;
clear;
x1=[0:0.01:1];
y1=x1;
x2=[1:0.01:2];
y2=2-x2;
x=[x1 x2];
y=[y1 y2];
plot(x,y)
axis([-0.2 2.2 0 1.2]);
xlabel('x')
ylabel('\rho(x)')
