uaveiro-leci/3ano/1semestre/mpei/aula03/ex2.m

7 lines
120 B
Mathematica
Raw Normal View History

xi = 0 : 4;
p = [0.9 0.09 0.01];
b = [0 cumsum(p) 1];
stairs(xi, b);
xlabel('Valor da Nota (Euros)');
ylabel('F_X(x)');