You are on page 1of 1

Data Random

Scribt Matlab
x=1:1:20;
data_jumat = 3*randn(1,20);
data_sabtu = 3*randn(1,20);
data_minggu = 3*randn(1,20);
jumat = [-66 -66 -76 -74 -71 -76 -64 -75 -79 -71 -88 -97 -93 -76 -86 -93 -93
-84 -84 -90];
sabtu = [-75 -75 -74 -74 -76 -76 -69 -71 -91 -87 -96 -83 -77 -85 -77 -87 -93
-84 -84 -90];
minggu = [-97 -87 -83 -82 -99 -102 -84 -93 -93 -71 -70 -76 -77 -69 -67 -82 82 -72 -74 -72];
rand_jumat = jumat+data_jumat;
rand_sabtu = sabtu+data_sabtu;
rand_minggu = minggu+data_minggu;
y_jumat = -1.0135*x-64.358;
y_sabtu = -0.7654*x-65.069;
y_minggu = -0.186*x-66.442;
figure(1)
plot(x,jumat,'-.','linewidth',2); hold on;
plot(x,y_jumat); hold on;
plot(x,rand_jumat,':o');
figure(2)
plot(x,sabtu,'r'); hold on;
plot(x,y_sabtu,'b'); hold on;
plot(x,rand_sabtu,'g');
figure(3)
plot(x,minggu,'r'); hold on;
plot(x,y_minggu,'b'); hold on;
plot(x,rand_minggu,'g');
%plot(x,y_jumat,'b');
%hold on
%plot(x,y_sabtu,'r');
%hold on
%plot(x,y_minggu,'g');
%xlabel('Waktu (s) ');
%ylabel('Kuat Sinyal (dBm)')
%legend('Jumat','Sabtu','Minggu');

You might also like