5-5 ???令彙整

ezU`AAΩ}x}OAiCJpUG

O\
B = sparse(A)N@ӧx} A ഫ}x} B
B = sparse(i, j, s, m , n )

ͤ@ӵ}x} BA䤤 G

  • i OC
  • j O
  • s ODsΦVq
  • m O B C
  • n O B
  • iBjBs O׬ۦPVq
B = spdiags(D, p, m, n)

ѯx} D 﨤uӫغc@ӵ}x} BA䤤G

  • D C@ӪNx}﨤uVq
  • p N﨤um]0 ND﨤uA-1 NVU첾@쪺﨤uA1 NVW첾@쪺﨤uA̦^
  • m P n hONx}C׻P
full(B)Hx}ܯx} B
spconvert(C)

N@ m3 x} CAഫ}x}A䤤G

  • Ĥ@NC
  • ĤGN
  • ĤThODs
nnz(C) Ǧ^}x} C DsӼ
nonzeros(C)Ǧ^}x} C ҦDsΦVq
nzmax(C)Ǧ^}x} C ثeieǫDsӼƪ̤jȡAnnz > nzmax ɡAMATLAB |ʺAռWtmO鵹 nzmaxAHxssWDs
spy(C)[ݵ}x} C DsGp
gplot(A, xy, '-o');eXLVϡ]Undirected Graph^
treeplot(nodes)eX𪬹


MATLAB{]pGig