Nim : 201943043
Pemograman Komputer
subplot(3,1,1)
S = v.*t;
plot(t,S,'-o','linewidth',2,'markersize',9,'markeredgecolor','k','markerfacecolor','c');
grid on
title('Grafik Jarak')
xlabel('waktu')
ylabel('kecepatan')
subplot(3,1,2)
V = S/t;
plot(t,V,'b>','linewidth',2,'markersize',9,'markeredgecolor','m','markerfacecolor','g');
grid on
title('Grafik Kecepatan')
xlabel('waktu')
ylabel('jarak')
subplot(3,1,3)
T = S/V;
plot(t,T,':ks','linewidth',2,'markersize',9,'markeredgecolor','b','markerfacecolor','c')
grid on
title('Grafik Waktu')
xlabel('jarak')
ylabel('kecepatan')
clc; clear;
disp('GLBB')
subplot(4,2,1)
v = a*t; % satuannya m/s%
plot(t,v,'--bo','linewidth',2,'markersize',9,'markeredgecolor','c','markerfacecolor','y')
title('Grafik Kecepatan')
subplot(4,2,2)
vt = v0+a*t; % percepatan (a) = v-v0/t bisa di ubah menjadi v = v0+a*t%
plot(t,v,':b>','linewidth',2,'markersize',9,'markeredgecolor','c','markerfacecolor','r')
title('Grafik Percepatan')
subplot(4,2,3)
s = v0*t+0.5*a*t.^2;
plot(t,s,'--mo','linewidth',2,'markersize',8,'markeredgecolor','k','markerfacecolor','c')
title('Grafik Jarak')
subplot(4,2,4)
Vt = v0.^2+2*a*s; %kecepatan akhir pangkat 2%
plot(t,Vt,'-bs','linewidth',2,'markersize',9,'markeredgecolor','k','markerfacecolor','y')
title('Grafik Kecepatan Akhir')