Laporan Pemrograman Komputer

LAPORAN 1 PEMROGRAMAN KOMPUTER
“MENCARI BESAR ARUS PADA RANGKAIAN 2 LOOP TERTUTUP DENGAN MENGGUNAKAN PRINSIP MATRIKS PADA APLIKASI MATLAB”

Disusun oleh :
Wanda Juanda Putra (17306144012)
Dani Setyo Yoanto (17306144013)
Ghufron Utsman Affandi (17306144014)

JURUSAN PENDIDIKAN FISIKA
PROGRAM STUDI FISIKA
FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM
UNIVERSITAS NEGERI YOGYAKARTA
2017

A. PERMASALAHAN
Menyelesaikan persamaan rangkaian 2 loop tertutup dengan menggunakan model matriks pada aplikasi MATLAB.
Mencari besar arus dalam rangkaian 2 loop tertutup dengan model matriks pada aplikasi MATLAB.
B. TEORI SINGKAT
Hukum II Kirchhoff menyatakan bahwa ‘Di dalam sebuah rangkaian tertutup, jumlah aljabar gaya gerak listrik (є) dengan penurunan tegangan (I.R) sama dengan nol.’ Maksudnya adalah tidak ada energi listrik yang hilang dalam rangkaian tersebut, atau dapat dikatan semua energi yang ada di dalam rangkaian tersebut dapat diserap atau digunakan ketika penurunan potensial sama dengan nol.
Hukum II Kirchhoff secara umum dapat dituliskan dengan rumus : Σє +ΣIR = 0. Hukum II Kirchhoff dapat digunakan dalam menyelesaikan masalah pada rangkaian tertutup, seperti pada rangkaian satu loop, dua loop, dan rangkaian multi-loop.

Jika terdapat rangkaian 2 loop tertutup seperti gambar di atas, kita dapat menyelesaikan permasalahan di atas dengan menggunakan hukum II Kirchhoff. Dengan mengetahui bahwa nilai Loop 1 adalah e1, R1 dan R3 ; dan Loop 2 adalah e2, R2 dan R3. Dengan catatan e1 (epsilon1) dan e2 (epsilon2) adalah sumber tegangan. Sementara itu, R1, R2, dan R3 adalah resistor (hambatan). Setelah mengetahui nilai loop 1 dan 2, maka kita dapat menuliskan. Loop 1 : e1 = i1 R1 + R3 (i1 – i2) dan Loop 2 : R2 R3 i2 + (i2 – i1). Dari persamaan loop di atas, kita dapat menuliskannya dengan bentuk matriks, dengan mengetahui nilai e(epsilon) dan R (hambatan) yang ada dalam rangkaian. Persamaan loop di atas dapat dituliskan dengan matriks:

Secara rinci, matriks di atas dapat dituliskan: I = inv(R)*e
Matriks di atas dapat diselesaikan dengan menggunakan aplikasi, salah satunya dengan menggunakan aplikasi MATLAB dengan menggunakan prinsip matriks.
C. PENYELESAIAN
a. Diagram Alir (Flow Chart)

b. Algoritma
1. Input nilai e (epsilon) dan R (hambatan).
2. Membuat data berupa bentuk matriks dari nilai E (epsilon), dan R (hambatan).
3. Menampilkan data E, dan R, dengan menambah variable pada masing-masing data
4. Mencari nilai I, dengan membuat rumus I = inv (R)*E
5. Menampilkan pilihan hasil yang akan ditampilkan
5.1 Tampilan 2, cara dan penyelesaian
6. Tampilkan output/hasil dari I = inv (R)*E
7. Selesai

c. Program

clear
clc
disp(‘Menentukan Besar Arus pada Rangk. Loop dengan menggunakan MATLAB’);
disp(‘Diketahui Persamaan LOOP: ‘);
disp(‘loop1 : epsilon1= I1*R1+R3(I1-I2)’);
disp(‘loop2 : epsilon2= I2*R2+R3(I2-I1)’);
disp(‘ ‘);

disp(‘Masukkan besar tegangan dan hambatan yang anda inginkan:’);
epsilon1=input(‘epsilon1= ‘); %nilai tegangan (v)
epsilon2=input(‘epsilon2= ‘); %nilai tegangan (v)
E=[epsilon1;
epsilon2;]; %nilai tegangan (v)

R1=input(‘R1= ‘); % hambatan 1 (ohm)
R2=input(‘R2= ‘); % hambatan 2 (ohm)
R3=input(‘R1= ‘); % hambatan 3 (ohm)
R=[R1
R2
R3]; % hambatan 1,2 dan 3(ohm)
E=[epsilon1
epsilon2];
R=[R1+R3 -R3
-R3 R2+R3];
I=inv(R)*E;

disp(‘Anda telah memasukkan data’);
disp(‘Tekan untuk melanjutkan’);
pause
clc
disp(‘Data yang anda masukkan adalah:’);
disp([‘epsilon1= ‘, num2str(epsilon1),’volt’]);
disp([‘epsilon2= ‘, num2str(epsilon2),’volt’]);
disp([‘R1= ‘, num2str(R1),’ohm’]);
disp([‘R2= ‘, num2str(R2),’ohm’]);
disp([‘R3= ‘, num2str(R3),’ohm’]);
pause
clc
disp (‘Anda ingin mencari?’);
disp(‘1. Besar arus yang dihasilkan’);
disp(‘2. Cara dan penyelesaiannya’);
pilihan=input(‘Pilihan anda adalah nomor= ‘);

switch pilihan
case(1)
disp(‘Arus pada rangk. tersebut adalah’);
I=inv(R)*E;
case(2)
disp(‘Cara penyelesaian:’);
E=[epsilon1
epsilon2]
R=[R1+R3 -R3
-R3 R2+R3]
disp(‘I=inv(R)*E’);
I=inv(R)*E
end
d. Hasil Keluaran
Diketahui Persamaan LOOP:
loop1 : epsilon1= I1*R1+R3(I1-I2)
loop2 : epsilon2= I2*R2+R3(I2-I1)
Masukkan besar tegangan dan hambatan yang anda inginkan:
epsilon1=
epsilon2=
R1=
R2=
R1=
Anda telah memasukkan data
Tekan untuk melanjutkan
Data yang anda masukkan adalah:
epsilon1= volt
epsilon2= volt
R1= ohm
R2= ohm
R3= ohm
Anda ingin mencari?
1. Besar arus yang dihasilkan
2. Cara dan penyelesaiannya
Pilihan anda adalah nomor= 1
I = []
Pilihan anda adalah nomor= 2
E= []
R= []
I= []
D. REFERENSI
https://belajar.kemdikbud.go.id/SumberBelajar/tampilajar.php?ver=12&idmateri=98&lvl1=4&lvl2=2&lvl3=0&kl=10
http://staff.uny.ac.id/system/files/pendidikan/Jumadi, M.Pd., Dr./Hukum Kirchoff.pdf
http://staff.uny.ac.id/sites/default/files/tmp/Pengenalan Program Matlab Menggunakan Operasi operasi Matriks.pdf

You may also like...

No Responses

  1. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You said it perfectly..
    https://www.waltcoexpress.com/
    canadian pharmacies
    northwest pharmacy
    drug costs
    northwestpharmacy

  2. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Excellent write ups. Thanks!
    https://www.lunarciel.com/
    canada pharmacy
    top rated canadian pharmacies online
    canada online pharmacies
    canadian pharmacies without an rx

  3. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Reliable stuff. Thank you.
    https://www.lunarciel.com/
    cheap prescription drugs online
    canadian online pharmacy
    canadian viagra
    canada drugs online

  4. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Thanks a lot, Numerous info!

    https://www.waltcoexpress.com/
    cheap drugs online
    northwest pharmacy
    canadian pharmacy meds
    london drugs canada

  5. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Nicely put. With thanks.
    https://www.dunamisproductions.com/
    international pharmacy
    canadian pharmacy
    pharmacy tech
    canadian online pharmacy

  6. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Fantastic info. Thanks!
    https://www.visitwaushara.com/
    canadapharmacyonline com
    mexican pharmacies shipping to usa
    northwestpharmacy
    canadian pharcharmy

  7. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You actually said it superbly.
    https://www.interlandchemie.com/
    the canadian pharmacy
    top rated canadian pharmacies online
    drugstore online
    canadian online pharmacy

  8. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Thanks a lot. A good amount of forum posts!

    https://www.waltcoexpress.com/
    canadian drugs
    canadian online pharmacies
    discount drugs online pharmacy
    canadian pharcharmy

  9. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Useful facts. Appreciate it.
    https://www.visitwaushara.com/
    canada drug pharmacy
    online pharmacies of canada
    prescription drugs canada
    canadian online pharmacy

  10. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Useful content. Cheers.
    https://www.waltcoexpress.com/
    buy drugs online
    northwest pharmacy
    best online pharmacies no prescription
    canada pharmaceutical online ordering

  11. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Appreciate it. Numerous advice.

    https://www.dunamisproductions.com/
    online prescription drugs
    canadian online pharmacy
    mexican pharmacies
    canada pharmacy

  12. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Nicely put, Cheers.
    https://www.interlandchemie.com/
    canadianpharmacy
    northwest pharmacy
    pharmacies in canada
    canadian pharmaceuticals online

  13. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Nicely put. Regards.
    https://www.lunarciel.com/
    drug prices comparison
    canadian pharmacies that ship to us
    top rated canadian pharmacies online
    northwestpharmacy

  14. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Nicely put, Cheers.
    https://www.waltcoexpress.com/
    safeway pharmacy
    canadian pharmacy online
    medical information online
    canadian pharcharmy

  15. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Regards. I enjoy it.
    https://www.interlandchemie.com/
    discount drugs online pharmacy
    canadian pharmacies-24h
    prescription drugs online without doctor
    canadian online pharmacy

  16. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Very well voiced really! .
    https://www.dunamisproductions.com/
    online pharmacies canada
    canada pharmacy online
    canadapharmacyonline com
    canadian pharmacies

  17. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Lovely stuff. Many thanks.
    https://www.visitwaushara.com/
    trusted overseas pharmacies
    canadian pharmacy
    compare rx prices
    london drugs canada

  18. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    With thanks! Useful information.
    https://www.waltcoexpress.com/
    online pharmacy without a prescription
    top rated canadian pharmacies online
    online pharmacies no prescription
    global pharmacy canada

  19. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Thanks, Lots of facts!

    https://www.lunarciel.com/
    pharmacy canada
    canadian online pharmacies
    medical information online
    north west pharmacy canada

  20. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Kudos, Quite a lot of material!

    https://www.waltcoexpress.com/
    online drugstore
    canada pharmaceutical online ordering
    canadian prescription drugstore
    aarp approved canadian online pharmacies

  21. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Thank you, Very good stuff!
    https://www.waltcoexpress.com/
    medication costs
    canadianpharmacy
    canada drugs pharmacy
    online pharmacies canada

  22. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Nicely spoken genuinely! .
    https://www.visitwaushara.com/
    buy prescription drugs canada
    canada pharmacy
    trusted overseas pharmacies
    canada pharmaceuticals online

  23. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Amazing many of amazing info.
    https://www.interlandchemie.com/
    best non prescription online pharmacies
    aarp approved canadian online pharmacies
    approved canadian pharmacies online
    canada online pharmacies

  24. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Wow quite a lot of beneficial tips.
    https://www.visitwaushara.com/
    pharmacy prices compare
    northwest pharmacy
    online pharmacy canada
    mexican pharmacies shipping to usa

  25. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Cheers! Awesome information.
    https://www.waltcoexpress.com/
    canadian pharmacies top best
    canada pharmacy online
    canada pharmacy online no script
    canadian pharmacies

  26. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You said it adequately..
    https://www.visitwaushara.com/
    medication costs
    canadian pharmacies that ship to us
    ed meds online
    trust pharmacy canada

  27. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    With thanks, I like this!
    https://www.visitwaushara.com/
    buying drugs canada
    canadian pharmacies-24h
    online pharmacy
    canadianpharmacy

  28. Jimmieviera says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Thank you. Loads of posts.

    https://www.waltcoexpress.com/
    drug price
    northwest pharmacy
    rx price comparison
    canadian pharmacy online

  29. Scottsew says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Amazing a lot of great facts.
    http://canadianpharmacyntx.com/
    canada drugs pharmacy
    canada online pharmacies
    visit poster’s website
    global pharmacy canada

  30. PeterWheri says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Cheers! Numerous postings!

    http://canadianonlinepharmacynnm.com/
    canadapharmacy
    canada pharmaceuticals online
    cheap canadian drugs
    canada drug

  31. Scottsew says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Amazing quite a lot of amazing facts.
    http://talahicc.com/
    online drugstore
    trust pharmacy canada
    discount pharmaceuticals
    canadian pharmacies-24h

  32. PeterWheri says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Awesome content, Cheers.
    http://www.canadianpharmacymsn.com/
    canadian prescriptions
    online pharmacies of canada
    online rx pharmacy
    canada pharmaceuticals online

  33. PatrickRanny says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You expressed this fantastically!
    http://canadianpharmacysilo.com/
    prescription drugs without doctor approval
    northwestpharmacy
    buying prescription drugs canada
    canadianpharmacy

  34. Scottsew says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You expressed it exceptionally well!
    http://canadianpharmacyntx.com/
    prescription drugs online without
    canadian online pharmacy
    canadian drug store
    canadian online pharmacies

  35. PeterWheri says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Seriously lots of awesome tips!
    http://www.canadianpharmacymsn.com/
    canadian pharmacy no prescription
    canadian pharmacies
    no 1 canadian pharcharmy online
    canadian pharmacy online

  36. PatrickRanny says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Nicely put. Thank you!
    http://www.canadianpharmacymsn.com/
    prescription drug assistance
    canadian pharmacies that ship to us
    online drugs
    trust pharmacy canada

  37. PatrickRanny says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Very good content. Thanks a lot.
    http://canadianpharmacymim.com/
    price prescription drugs
    canadian pharmacies
    pharmacy near me
    online pharmacies canada

  38. PatrickRanny says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Good postings, Thank you!
    http://talahicc.com/
    canadian pharmacy no prescription
    canadian pharmacies online
    drugs online
    canada drugs online

  39. PatrickRanny says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You made your stand pretty nicely!.
    http://canadianpharmaciesnnm.com/
    online canadian pharmacy
    mexican pharmacies shipping to usa
    canadian rx
    canada drugs

  40. Scottsew says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You said it very well..
    http://talahicc.com/
    canadian pharmacy reviews
    canada drugs
    pharmacy online store
    global pharmacy canada

  41. PeterWheri says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Many thanks, Excellent stuff!
    http://canadianpharmacyntx.com/
    cialis canadian pharmacy
    london drugs canada
    canadian online pharmacy reviews
    canadian cialis

  42. Scottsew says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Many thanks. I appreciate it.
    https://nicktambone.com/
    online canadian pharmacies
    canadian pharmaceuticals online
    discount pharmaceuticals
    north west pharmacy canada

  43. PeterWheri says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Fantastic forum posts. Appreciate it.
    http://canadianpharmacyntx.com/
    most reliable canadian pharmacies
    canada drugs
    canadian pharmacy 365
    canada drugs online

  44. PatrickRanny says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Thanks. A lot of knowledge!

    http://canadianpharmacysilo.com/
    canadian drugstore reviews
    canada pharmacy
    canada pharmacy online no script
    canada pharmaceutical online ordering

  45. Scottsew says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Thank you, Great information.
    http://canadianpharmacyntx.com/
    mexican pharmacies shipping to usa
    canadian online pharmacies
    canada drugs pharmacy
    canadian pharmacies

  46. PeterWheri says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Really all kinds of superb tips.
    https://nicktambone.com/
    canadapharmacyonline.com
    canada pharmacy online
    canadian pharmacy king
    canadian cialis

  47. Scottsew says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You actually reported this very well.
    http://canadianpharmaciesnnm.com/
    canada pharmacy online reviews
    trust pharmacy canada
    canadian discount pharmacy
    canadian pharmacies online

  48. PeterWheri says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    You made the point!
    http://canadianpharmacysilo.com/
    canadianpharmacy
    canada drugs
    canadian drugs without prescription
    canadian pharmacies

Leave a Reply

Your email address will not be published. Required fields are marked *

37 + = 41