Matlab - Banded Matrix

  • Thread starter Huumah
  • Start date
  • #1
28
0
28eC1QV.png


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:

Answers and Replies

  • #2
DrClaude
Mentor
7,607
4,009
Can you explain in more details what you have tried?

And the bandwith here is 5.
 

Related Threads on Matlab - Banded Matrix

  • Last Post
Replies
8
Views
4K
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
10
Views
1K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
0
Views
1K
  • Last Post
Replies
3
Views
28K
  • Last Post
Replies
2
Views
1K
Replies
1
Views
3K
Replies
1
Views
2K
Replies
1
Views
6K
Top