Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
99Activity
0 of .
Results for:
No results containing your search query
P. 1
Metode Numerik Gauss Jordan Menggunakan MATLAB

Metode Numerik Gauss Jordan Menggunakan MATLAB

Ratings: (0)|Views: 5,410|Likes:
Published by Lionel Zakhy

More info:

Published by: Lionel Zakhy on Jun 24, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

06/19/2013

pdf

text

original

 
 
 Latihan MATLAB
PROGRAM PENYELESAIANPERSAMAAN SIMULTANMENGGUNAKANMETODE GAUSS-JORDAN
Oleh :
 Lionel ‘@rdi’ Zakhy
Teknik Tadulako2009
 
METODE ELIMINASI GAUSS JORDAN
Selesaikan persamaan simultan berikut menggunakanmetode eliminasi Gauss-Jordan
1234123412341234
232232232
 x x x x x x x x x x x x x x x x
+ + + =+ + + =+ + + =+ + + =
5465
 
Penyelesaian :File data.txt
 
GAUSSJORDAN.m1 of 1D:\Documents\MATLAB\Program Invers Matriks Cara Gauss JordanMay 18, 2009clc,clearall,closeall disp('===================================================================')disp('PROGRAM PENYELESAIAN PERSAMAAN SIMULTAN [A]{X} = {B}')disp('MENGGUNAKAN METODE ELIMINASI GAUSS JORDAN')disp('===================================================================') %Membaca File data matriksloaddata.txtdisp('Matriks A adalah ')AB=data;[m1 n1]=size(AB);A=AB(:,1:n1-1)disp('Matrik B adalah ')B=AB(:,n1)[m n]=size(A);ifm~=ndisp(['Baris = ',num2str(m),' ; Kolom = ',num2str(n)]) disp('Bukan Matriks Persegi')disp('Matrik [A] Tidak Mempunyai Invers..!!!') returnenddetA=det(A);ifdetA==0disp('A adalah Matriks singular')disp('Matrik [A] Tidak Mempunyai Invers..!!!') returnend disp('Langkah awal : Membuat matriks M = A|B|I')disp('====================================================================')MATRIX=[A B eye(m)]fori=1:mdisp(['Eliminasi Kolom 'num2str(i)])disp('================================================================')disp(['B'num2str(i)'/a'num2str(i) num2str(i)]) MATRIX(i,:)=MATRIX(i,:)./MATRIX(i,i)io=i-1;%Baris di atas iin=m-i;%Baris di bawah i forii=1:iodisp(['B'num2str(ii)' - a'num2str(ii) num2str(i)'*B'num2str(i)]) MATRIX(ii,:)=MATRIX(ii,:)-MATRIX(i,:).*MATRIX(ii,i) end forjj=1:indisp(['B'num2str(i+jj)' - a'num2str(i+jj) num2str(i)'*B'num2str(i)]) MATRIX(i+jj,:)=MATRIX(i+jj,:)-MATRIX(i,:).*MATRIX(i+jj,i) endenddisp('Invers matrik A adalah ...')Invers=MATRIX(:,m+2:end)disp('SOLUSI PERSAMAAN SIMULTAN ADALAH ...')disp(' ') fori=1:mdisp(['X'num2str(i)' = 'num2str(MATRIX(i,m+1)) ]) end 

Activity (99)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Yuda Pratama liked this
Budi Smith liked this
Komyadi Gayo liked this
Vibrado liked this
Mareta Danar liked this
Arif D Prasetyo liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->