LU decomposition using Doolittle's Method with MATLAB code

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

Комментарии • 50

  • @وردةالزنبق-ع5ح
    @وردةالزنبق-ع5ح Год назад +5

    I am a student in the Department of Mathematics from Iraq. I thank you very much because I benefited a lot from the excellent explanation. I even speak Arabic and do not understand Hindi, but your explanation was excellent, even though I do not understand your language, but I understood the explanation. Thank you very much.

  • @usernameisamyth
    @usernameisamyth 6 месяцев назад +1

    code:
    ---------
    clc;clear all;
    A=input('Enter the coefficient matrix: ');
    b=input('Enter the vector of constants: ');
    N=length(A);
    L=zeros(N,N);
    U=zeros(N,N);
    for i=1:N
    L(i,i)=1;
    end
    U(1,:)=A(1,:);
    L(:,1)=A(:,1)/U(1,1);
    for i=2:N
    for j=i:N
    U(i,j)=A(i,j)-L(i,1:i-1)*U(1:i-1,j);
    end
    for k=i+1:N
    L(k,i)=(A(k,i)-L(k,1:i-1)*U(1:i-1,i))/U(i,i);
    end
    end
    L,U
    y=L\b
    x=U\y

  • @ankitmishra2723
    @ankitmishra2723 12 дней назад

    Thanks sir❤

  • @eedeatlikkle3652
    @eedeatlikkle3652 3 года назад +1

    You are a king! Best explanations I have ever come across!
    I was wondering if you will be covering initial value problems and boundary value problems using matlab?
    Since you explain concepts very well, it would be very helpful.

  • @divyadhaka1619
    @divyadhaka1619 14 дней назад +1

    Great explanation...

  • @saroshrizvi2498
    @saroshrizvi2498 2 года назад

    You are goated bro! love your videos

  • @samytee3282
    @samytee3282 3 года назад

    Well explained,👍

  • @skusaid8512
    @skusaid8512 7 месяцев назад +1

    Assalamualaikum
    Sir ur gr8. Love from Srinagar Kashmir

  • @syedhashimnaqvi3321
    @syedhashimnaqvi3321 3 года назад

    Thank you sir❣️

  • @sayakkarmakar4873
    @sayakkarmakar4873 Год назад +1

    very nice video. thank you sir

  • @parthadutta1553
    @parthadutta1553 Месяц назад

    Thank you very much mashallah

  • @yonathanbomisso7650
    @yonathanbomisso7650 10 месяцев назад

    Puis-je avoir le pdf de cette méthode ?

  • @idreesafridi6494
    @idreesafridi6494 3 года назад +1

    Amazing

  • @m.eminerdogan5371
    @m.eminerdogan5371 Год назад

    firstly thx for video but ı have problem with NAN and İnf , how can ı fix that ?

  • @anushranka3679
    @anushranka3679 2 года назад +1

    amazing explanations!!

  • @tranthanhtruong4205
    @tranthanhtruong4205 2 года назад

    Can you give me the slide show please? Thank you very much

  • @zumrakayani2584
    @zumrakayani2584 3 года назад +1

    👍

  • @NairutyaPatel
    @NairutyaPatel 6 месяцев назад

    Thank You sir, Very helpful

  • @shirishkrishna3155
    @shirishkrishna3155 2 года назад

    it doesnt work for non square matrix,how to fix that

  • @rahuldorai6628
    @rahuldorai6628 2 года назад

    Thank you so much you explained this complicating looking problem in a most simple way.Great work indded❤❤

  • @gopinathchakraborty2694
    @gopinathchakraborty2694 3 года назад

    Thank you very much Atik .... I was stuck with the algorithm for weeks.... Now I can run my simulation

  • @royblack8568
    @royblack8568 2 года назад

    Nice video bro, i'm mexican ando i don't understand well all words that you say, It would be easier if you could put subtitles of what you say

    • @ATTIQIQBAL
      @ATTIQIQBAL  2 года назад +1

      Thank you for feedback. I will work on it

  • @akashgupta6414
    @akashgupta6414 3 года назад

    Very nice explanation

  • @deepeshkumargupta5801
    @deepeshkumargupta5801 3 года назад

    Well explain.. Thank you

  • @omarsoliman7124
    @omarsoliman7124 2 года назад

    Unrecognized function or variable 'B'.
    Error in LU_Decomposition (line 20)
    Y(1) = B(1)/L(1,1);

    • @ATTIQIQBAL
      @ATTIQIQBAL  2 года назад

      Send screenshot of your code at attiqforstudents@gmail.com

    • @ala4942
      @ala4942 Год назад

      hi, did you get answer? I have the same problem

  • @muradsaleem9746
    @muradsaleem9746 3 года назад

    Very informative

  • @siddhanthmadhavan1468
    @siddhanthmadhavan1468 3 года назад

    sir, i am getting error like "Index in position 1 exceeds array bounds (must not exceed 1)" in line number 13 in my program when i typed the same like u have typed sir. pls help in resolving my error asap.

    • @ATTIQIQBAL
      @ATTIQIQBAL  3 года назад

      Email the screenshot of your code and output at attiqforstudents@gmail.com

    • @siddhanthmadhavan1468
      @siddhanthmadhavan1468 3 года назад

      @@ATTIQIQBAL i have mailed sir

    • @seveneightsix5289
      @seveneightsix5289 2 года назад

      @@ATTIQIQBAL sir please help me i have some errors

  • @imtiazshah1775
    @imtiazshah1775 2 года назад

    well explained 👍

  • @daniyal946
    @daniyal946 Год назад

    this is a good method to solve lud composition,but there is a built in function in matlab to solve lud coposition.
    clear;
    clc;
    A = [2 4 -6; 1 5 3; 1 3 2];
    b = [-4; 10; 5];
    [L, U] = lu(A);
    y = L\b;
    x = U\y;
    disp("Solution:");
    disp(x);

  • @shahimtiazali6803
    @shahimtiazali6803 2 года назад

    👍

  • @meloncherrysoda2536
    @meloncherrysoda2536 3 года назад

    Thank you sir your work is amazing!

  • @idreesafridi6494
    @idreesafridi6494 3 года назад

    Great work

  • @mrigankchhabra3844
    @mrigankchhabra3844 3 года назад

    Greetings Mr.Iqbal, I am watching your video lectures of coding matrix problems, and I am finding it incredibly useful. But have a small query too, may you please explain it again the reason behind of taking zeros, Is this a function and what does it actually signify? Regards

    • @ATTIQIQBAL
      @ATTIQIQBAL  3 года назад +1

      First of all thank you for your feedback and now about your query, actually I'm just initializing the matrices with all entries zero and then i will update those entries according to desired algorithm.
      I hope it helps.

    • @mrigankchhabra3844
      @mrigankchhabra3844 3 года назад

      @@ATTIQIQBAL, Thank you for your message. That makes perfect sense and yes I noticed when applying parenthesis (the round brackets using shift and 9, shift and 0) it forms rows and columns of matrix and zeros acts as a function. Overall, zeros(m,n) forms a matrix of zeros values of all elements with m rows and n columns. I am having some more queries regarding the Matlab, may you please let me know the best way of contacting you?
      Regards

    • @ATTIQIQBAL
      @ATTIQIQBAL  3 года назад +1

      Yes you're absolutely right about this concept. Reach me through email at attiqforstudents@gmail.com

  • @tirthakgayen2181
    @tirthakgayen2181 3 года назад

    can you make a video for cholesky decomposition, please

    • @ATTIQIQBAL
      @ATTIQIQBAL  3 года назад

      Working on it.

    • @tirthakgayen2181
      @tirthakgayen2181 3 года назад

      @@ATTIQIQBAL if u can make it within this week ..i would be grateful. thanks in advance

  • @ebtehalalmohaimeed3839
    @ebtehalalmohaimeed3839 2 года назад

    your work is great and if can you write the code under the video, this will be so helpful

    • @ATTIQIQBAL
      @ATTIQIQBAL  2 года назад +1

      Then who will take intrest in watching the video. :D

    • @ebtehalalmohaimeed3839
      @ebtehalalmohaimeed3839 2 года назад

      @@ATTIQIQBAL Thanks too much, I understand your opinion