Create Banded Matrix in MATLAB - Step-by-Step Guide

  • Thread starter Thread starter Huumah
  • Start date Start date
  • Tags Tags
    Matlab Matrix
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 3K views
Huumah
Messages
27
Reaction score
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:
on Phys.org