1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Matlab - Banded Matrix

  1. Mar 3, 2013 #1

    I'm trying to make a banded matrix in matlab like the one in my picture.

    I'm trying to use the spdiags function but i'm not going even close to getting the same matrix.

    I have tried the help in Matlab but have had no luck yet.

    How can you tell the bandwidth is 7?
    Last edited: Mar 3, 2013
  2. jcsd
  3. Mar 11, 2013 #2


    User Avatar

    Staff: Mentor

    Can you explain in more details what you have tried?

    And the bandwith here is 5.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted