OUR WORK ON MATLAB CODING


Thomas Algorithm: 

(To solve Tri-diagonal system of equations)

function x = thomasfunc(a,b,c,r)

%Here thomasfunc(a,b,c,r) makes use of Thomas algorithm to calculate the

%value of x for a tridiagonal system

%a denotes lower diagonal of matrix A [0 a2 a3 a4]

%b denotes main diagonal of A [b1 b2 b3 b4]

%c denotes upper diagonal of A [c1 c2 c3 0]

%r denotes right hand side vector b 

gamma(1)=c(1)/b(1);

rho(1)=r(1)/b(1);

n=size(a,2);

for i =2:n

gamma(i)=c(i)/(b(i)-a(i)*gamma(i-1));

rho(i)=(r(i)-a(i)*rho(i-1))/(b(i)-a(i)*gamma(i-1));

end

x(n)=rho(n);

for i = 1:n-1

x(n-i)=rho(n-i)-gamma(n-i)*x(n-i+1);

end

x=transpose(x);

end

10 thoughts on “OUR WORK ON MATLAB CODING”

  1. Hello would you mind sharing which blog platform you’re using?

    I’m going to start my own blog in the near future but I’m having a hard time
    selecting between BlogEngine/Wordpress/B2evolution and Drupal.

    The reason I ask is because your design seems different then most blogs and I’m looking for something completely
    unique. P.S Apologies for getting off-topic but I had to ask!

  2. I just like the valuable information you provide on your articles.
    I will bookmark your weblog and take a look at once more right here regularly.

    I am somewhat certain I will be informed many new stuff proper here!
    Best of luck for the next!

  3. I’ve been browsing on-line more than three hours lately, but I by no means discovered any fascinating
    article like yours. It is lovely worth enough for me.
    In my opinion, if all webmasters and bloggers made just right content material as
    you did, the web will be much more helpful than ever before.

    My website :: CBD for dogs

  4. Hey superb blog! Does running a blog such as
    this require a great deal of work? I have no knowledge of
    computer programming but I had been hoping to start my own blog in the near
    future. Anyways, should you have any ideas or techniques
    for new blog owners please share. I understand this is off topic but I
    simply needed to ask. Thanks!

  5. Good day very nice blog!! Man .. Beautiful .. Wonderful ..
    I will bookmark your web site and take the feeds also?

    I am glad to seek out numerous helpful info right here in the put up, we’d like develop extra
    techniques in this regard, thank you for sharing.
    . . . . .

    buy delta 8 THC area 52 – buy delta 8 THC area 52

    buy delta 8 THC area 52 – delta 8 area 52

    delta 8 carts Area 52 – area 52 delta 8 THC products

    Area 52 delta 8 carts – buy delta 8 THC area 52

    area 52 delta 8 THC products – Area 52 delta 8 carts

  6. Thank you, I’ve recently been looking for info approximately this
    subject for a long time and yours is the best I’ve came upon till now.
    However, what in regards to the conclusion? Are you certain concerning
    the supply?

    delta 8 THC area 52 – delta 8 THC area 52

    delta 8 THC area 52 – Area 52 delta 8 carts

    buy delta 8 THC area 52 – area 52 delta 8 THC products

    buy delta 8 THC area 52 – Area 52 Delta 8 THC

    Area 52 Delta 8 THC – area 52 delta 8 THC products

  7. I need to to thank you for this excellent read!!
    I certainly loved every bit of it. I have you bookmarked
    to look at new things you post…

    P.S. If you have a minute, would love your feedback on my new website
    re-design. You can find it by searching for «royal cbd» — no sweat if you can’t.

    Keep up the good work!

    Here is my web site – buy instagram followers

Leave a Reply

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