Blogger Widgets
Sumber : http://yaqindlive.blogspot.com/2013/02/cara-membuat-judul-dan-deskripsi-blog.html#ixzz2lk2g83rd

This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Barcelonistas

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Selasa, 22 Mei 2018

Menghitung Jumlah dari Barisan Bilangan Genap Kurang dari 1000 dengan Aplikasi Matlab

Assalamualaikum Warahmatullahi Wabarakatuh.


Oke postingan admin sebelumnya tentang menghitung jumlah dari barisan bilangan ganjil kurang dari 100 dengan aplikasi matlab, kali ini admin akan membagikan tips menghitung jumalah dari barisan bilangan genap kurang dari 1000 dengan aplikasi matlab.

Langsung saja langkah-langkahnya sebagai berikut:

1. Buka aplikasi Matlab anda.
2. Pilih New pada menu lalu klik script. Selanjutnya masukkan script seperti pada gambar:

 

Lebih jelasnya sebagai berikut:

f(1)=2;
f(2)=4;
k=3;
while f(k-1)<1000
    f(k)=2*k;
    k=k+1;
end
jml=0;
for n=2:k-2
    disp(f(n))
    jml=(jml+f(n));
end
disp(['Jumlahnya adalah ' num2str(jml)])


_______________________________________________________

3. Save dan beri nama sesuai dengan keinginan misalnya "genap".
4. Panggil nama tersebut pada command window yang sebelumnya sudah mengklik menu Run.