The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Creating a matrix for jacobi iteration
Replies: 2   Last Post: Apr 25, 2014 10:52 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 1
Registered: 4/25/14
Creating a matrix for jacobi iteration
Posted: Apr 25, 2014 8:12 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi, so for a question on an assignment I had to compute a 199x199 matrix A which I did and now for jacobi iteration I have to create a new 199x199 matrix that has a diagonal of zeros and then the rest of the matrix is the rest of A divided by the negative diagonal value of that row. ex: A= [1 2 3; and the new matrix would be M= [0 2/-1 3/-1;
4 5 6; 4/-5 0 6/-5;
7 8 9] 7/-9 8/-9 0]
does anyone know how to create this on matlab??

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.