SlideShare a Scribd company logo
disp('imputkZn mZtriks n x n ');
Z=input('Z= ');
B=eye(size(Z))
D=[Z,B]
[m,n]= size(D);
for j=1:m-1
for z=2:m
if D(j,j)==0
t=D(j,:);D(j,:)=D(z,:);
D(z,:)=t;
end
end
for i=j+1:m
D(i,:)=D(i,:)-D(j,:)*(D(i,j)/D(j,j));
end
end
x=zeros (1,m);
for s=m:-1:1
c=0;
for k=2:m
c=c+D(s,k)*x(k);
end
x(s)=(D(s,n)-c)/D(s,s);
end
disp('gZuss eliminZtion:');
D
x'

More Related Content

What's hot

Ecs.log.ii parte.3ºsec.
Ecs.log.ii parte.3ºsec.Ecs.log.ii parte.3ºsec.
Ecs.log.ii parte.3ºsec.
19671966
 
Ninth grade 4th period study guide key
Ninth grade 4th period study guide keyNinth grade 4th period study guide key
Ninth grade 4th period study guide key
Joshua Gerrard
 

What's hot (16)

MATHS SYMBOLS - ROOTS and THEIR PROPERTIES
MATHS SYMBOLS - ROOTS and THEIR PROPERTIESMATHS SYMBOLS - ROOTS and THEIR PROPERTIES
MATHS SYMBOLS - ROOTS and THEIR PROPERTIES
 
Equações do 2º grau
Equações do 2º grauEquações do 2º grau
Equações do 2º grau
 
Statistics Cheatsheet by MIT
Statistics Cheatsheet by MITStatistics Cheatsheet by MIT
Statistics Cheatsheet by MIT
 
New text document
New text documentNew text document
New text document
 
10CSL67 CG LAB PROGRAM 1
10CSL67 CG LAB PROGRAM 110CSL67 CG LAB PROGRAM 1
10CSL67 CG LAB PROGRAM 1
 
Math 3-H6
Math 3-H6Math 3-H6
Math 3-H6
 
De thi hsg lop 9 co dap an de 9
De thi hsg lop 9 co dap an   de 9De thi hsg lop 9 co dap an   de 9
De thi hsg lop 9 co dap an de 9
 
Clase 1 potenciación
Clase 1 potenciaciónClase 1 potenciación
Clase 1 potenciación
 
Excel
ExcelExcel
Excel
 
Sifat Operasi Hitung
Sifat Operasi HitungSifat Operasi Hitung
Sifat Operasi Hitung
 
Co-orinate Geometry
Co-orinate Geometry Co-orinate Geometry
Co-orinate Geometry
 
Squaring a binomial
Squaring a binomialSquaring a binomial
Squaring a binomial
 
Ecs.log.ii parte.3ºsec.
Ecs.log.ii parte.3ºsec.Ecs.log.ii parte.3ºsec.
Ecs.log.ii parte.3ºsec.
 
Htdp27.key
Htdp27.keyHtdp27.key
Htdp27.key
 
OpenOpt の線形計画で圧縮センシング
OpenOpt の線形計画で圧縮センシングOpenOpt の線形計画で圧縮センシング
OpenOpt の線形計画で圧縮センシング
 
Ninth grade 4th period study guide key
Ninth grade 4th period study guide keyNinth grade 4th period study guide key
Ninth grade 4th period study guide key
 

Recently uploaded

Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
Avinash Rai
 

Recently uploaded (20)

INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 

Gp

  • 1. disp('imputkZn mZtriks n x n '); Z=input('Z= '); B=eye(size(Z)) D=[Z,B] [m,n]= size(D); for j=1:m-1 for z=2:m if D(j,j)==0 t=D(j,:);D(j,:)=D(z,:); D(z,:)=t; end end for i=j+1:m D(i,:)=D(i,:)-D(j,:)*(D(i,j)/D(j,j)); end end x=zeros (1,m); for s=m:-1:1 c=0; for k=2:m c=c+D(s,k)*x(k); end x(s)=(D(s,n)-c)/D(s,s); end disp('gZuss eliminZtion:'); D x'