I have a code i need to shift to right my plot by 1,2,3 and 5, respectively on x axis
p=[1/6 1/6 1/6 1/6 1/6 1/6];q= conv(p,p)r=conv(q,p)rr=conv(r,p)rrr=conv(rr,p)rrrr=conv(rrr,p)hold onsubplot(2,2,1),plot(p*100),xlabel('1 dice vs P(x)'),xlim([1,6]),legend('1 dice','P(x)')hold onsubplot(2,2,2),plot(q*100),xlabel('2 dices vs Q(x)'),xlim([1,13]),legend('2 dices','Q(x)')hold onsubplot(2,2,3),plot(r*100),xlabel('3 dices vs R(x)'),xlim([1,19]),legend('3 dices','R(x)')hold onsubplot(2,2,4),plot(rrrr*100),xlabel('6 dices vs S(x)'),xlim([1,37]),legend('6 dices','S(x)')
Best Answer