Gauss Elimination - Simple MATLAB CODE/ PROGRAMMING

  Рет қаралды 78,249

Speedo

Speedo

Күн бұрын

In this Method You will able to understand the MATLAB Code for Gauss Elimination

Пікірлер: 47
@Mayoran2
@Mayoran2 7 жыл бұрын
This really helped, thank you so much
@DipakChavan
@DipakChavan 6 жыл бұрын
thanks
@lordcrasty
@lordcrasty 3 жыл бұрын
exactly 4 years later, thanks
@mubinkhan2450
@mubinkhan2450 5 жыл бұрын
Sir i think there are some problem to calculate the value of x matrix when you will try to calculate x(3 or more) it will not give correct answer. i found a correct answer applying this.......... for i = n:-1:1 t = b(i,:); for j = n:-1:i t = t-(A(i,j)*x(j,:)) end x(i,:) = t/A(i,i); end x
@kerlypadilla4026
@kerlypadilla4026 4 жыл бұрын
can you explain that please?
@uriel4829
@uriel4829 3 жыл бұрын
Thank you! Mine only printed the number. maybe this is because we are using Octave isntead of Matlab.
@kunalshegokar125
@kunalshegokar125 6 жыл бұрын
"for i=n-1:-1:1" sir couldn't understand this line. why did you use -1? by the way this was the most simplified code i have ever seen for gauss elimination. Thank you
@DipakChavan
@DipakChavan 6 жыл бұрын
in gauss elimination we find the variables from bottom to top...& in hat also we found the last variable (suppose z) at early...and then we found the remaining variables... so for x, y, z z is at 3rd position y is at 2nd & x is at 1st position so n = 3 and as z is find earliest after z, y(n-1) & then x(n-2) therefor we use n-1:-1:1( backward substitution)
@BikiniMadScientist
@BikiniMadScientist 6 жыл бұрын
You saved me thank you so much
@sirinesandid829
@sirinesandid829 7 жыл бұрын
hello thank you for the video but when i implemented this program it gaves me for the two first cordinates of x zero only the last coordinate is calcualted
@DipakChavan
@DipakChavan 7 жыл бұрын
sirine sandid give me ur problem
@sirinesandid829
@sirinesandid829 7 жыл бұрын
when i tried your code posted here x = 0 0 3.1 always i have the fisrt and the second argument =0
@sirinesandid829
@sirinesandid829 7 жыл бұрын
close all clc A=[12 -2 3; 1 10 -2; 3 1 15]; b=[18;16;52]; %solve linear system Ax=b % A is n by n matrix % x is an n by 1 matrix [n,~]= size(A); x= zeros(n,1); %initialize x %code for forward elimination to correct the matrix A to upper triangular %form for i =1: n-1 m=A(i+1:n,i)/A(i,i); A(i+1:n,:)=A(i+1:n,:)-m*A(i,:); b(i+1:n,:) = b(i+1:n,:)-m*b(i,:); end %code for back substitution to find unknowns x(n,:)= b(n,:)/A(n,n); for i= n-1:1:1 x(i,:) =(b(i,:)- A(i,i+1:n)*x(i+1:n,:))/A(i,i); end x %display all values
@DipakChavan
@DipakChavan 7 жыл бұрын
when I solve it the result is as below... x = 1.0748 2.1147 3.1107 >> x=inv(A)*b x = 1.0748 2.1147 3.1107
@sirinesandid829
@sirinesandid829 7 жыл бұрын
thank you i didn't write x =inv(A)*b
@rashedulislamseum7936
@rashedulislamseum7936 5 жыл бұрын
Very Good Explanation. Thanks A lot, Mr.Dipak Chavan
@angelodebritoalfeu4333
@angelodebritoalfeu4333 4 жыл бұрын
3 years later... Thank you.
@beoptimistic5853
@beoptimistic5853 3 жыл бұрын
kzbin.info/www/bejne/joGmmHqKbqefqLM 💐
@patan61
@patan61 5 жыл бұрын
easy and functional! all you need.. thanks
@venkatramana7822
@venkatramana7822 6 жыл бұрын
Thank you so much this helped me a lot
@vaddadisreevamsi947
@vaddadisreevamsi947 4 жыл бұрын
how to do it for rectangular matrix , can u help me ? Thanks in Advance.
@beoptimistic5853
@beoptimistic5853 3 жыл бұрын
kzbin.info/www/bejne/joGmmHqKbqefqLM 💐
@mohammedabokhadeje87
@mohammedabokhadeje87 6 жыл бұрын
really helped me ,thanks
@nehalranabhatt7127
@nehalranabhatt7127 6 жыл бұрын
can you please explain logic of last the equation used to fine the values of x2 and x3
@DipakChavan
@DipakChavan 6 жыл бұрын
I already explain it in the video...u just listen it and u'll find ur answer...
@Dzawlin88
@Dzawlin88 3 жыл бұрын
How to do it when b=Ax and x = [1,....1]T ?
@beoptimistic5853
@beoptimistic5853 3 жыл бұрын
kzbin.info/www/bejne/joGmmHqKbqefqLM 💐
@dr.engineering201
@dr.engineering201 6 жыл бұрын
I need help to solve a matrix problem, is there a way I can contact you so I can send my problem to you, then could you email me the file.
@DipakChavan
@DipakChavan 6 жыл бұрын
Philip Hammond Hello... U can also share ur problem here itself....
@dr.engineering201
@dr.engineering201 6 жыл бұрын
Dipak Chavan, substitute the values from the table and create four simulations equations and solve a1, a2, a3 and a4, using Gaussian elimination to solve the four unknown quantities. The data relationship is u=a1t+a2t^2+a3t^3+a4t^4 Data T/s. U/ms^-1 0.125 0.75 0.250 1.50 0.375 0.75 0.500 0.00 Could you solve this using Gaussian eleimination and show me step by stem how you got your answer, thank you
@dr.engineering201
@dr.engineering201 6 жыл бұрын
Can you send me a copy of the file when complete on matlab
@DipakChavan
@DipakChavan 6 жыл бұрын
R u really the Philip Hammond?
@dr.engineering201
@dr.engineering201 6 жыл бұрын
Yes I am Philips Hammond, I don’t know why that a problem. I am asking this question on the behalf of my sone, please can you help!
@sundarganesh3903
@sundarganesh3903 4 жыл бұрын
can it work for nxn matrix?
@SeifKoretum
@SeifKoretum 4 жыл бұрын
it worked with 4x4 with me
Gaussian Elimination & Row Echelon Form
18:40
The Organic Chemistry Tutor
Рет қаралды 2,6 МЛН
AMATH352 Gaussian Elimination Matlab
37:32
Niall M Mangan
Рет қаралды 32 М.
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
路飞与唐舞桐
Рет қаралды 7 МЛН
Brawl Stars Edit😈📕
00:15
Kan Andrey
Рет қаралды 59 МЛН
Gauss Elimination Method with MATLAB code
25:00
ATTIQ IQBAL
Рет қаралды 87 М.
Gaussian Elimination in Matlab
19:08
Keith Woodbury
Рет қаралды 174 М.
Gauss-Jordan Elimination Method in MATLAB
7:55
Uğur ARPACI
Рет қаралды 396
Gauss Elimination Code - ANY SIZE - Python Code
6:52
Shams ElFouly
Рет қаралды 30 М.
Gauss Jordan Method with MATLAB code
20:37
ATTIQ IQBAL
Рет қаралды 37 М.
Gauss Elimination and Back-Substitution
21:39
MATLAB Programming for Numerical Computation
Рет қаралды 78 М.
the TRUTH about C++ (is it worth your time?)
3:17
Low Level
Рет қаралды 715 М.
MATLAB Code of Gauss Elimination Method
14:21
Dr. Harish Garg
Рет қаралды 38 М.
Gaussian elimination | Lecture 10 | Matrix Algebra for Engineers
14:00
Jeffrey Chasnov
Рет қаралды 372 М.
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12