Cara Membuatnya dengan matlab berikut perintah sederhananya:
----------------------------------------------------------------------------------------------------------------
aa=[4,7,6,8,9,7,5,3,1,2,3,4,5,6,7,8,8,8,7,6,5,4,3,4,5,6,9,0,8,7,0,0,8,5,4,5,3,3,3,3,3,3,5,6,4,6,5];
b=mode(aa);
c=mean(aa);
d=median(aa);
h=[0,b,c,d,0];
s=[0,5,10];
if(b==c && b==d)
h=[0,0,b,0,0];
plot(h,'o')
hold on
plot(h)
hold on
stem(h)
else
plot(h,'o')
hold on
plot(h)
hold on
stem(h)
end
axis([1,5,0,10])
------------------------------------------------------------------------------------------------------------------
Link Download programnya ada di bawah
Download - Program Grafik Modus rataan dan median
Tidak ada komentar:
Posting Komentar