Navigation

Operators and Keywords

Function List:

C++ API

spdiags.m File Reference


Functions

 if (nargin==1) c
 A (j(idx)-offset(k), k)
endfor elseif (nargin==3)[nr

Variables

 function [A, c]
endif offset = max (min (c, nc-nr), 0)
 A = zeros (min (nr, nc), length (c))
for k
endfor nc = size (m)
 B = spdiags (m, c)
 else [j, i, v] = find (v)
 j = j(:) + offset(i)
 i = j-c(:)(i)
 idx = i > 0 & i <= m & j > 0 & j <= n

Function Documentation

A ( j(idx)-offset(k ,
k   
)

endfor elseif ( nargin  = = 3  ) 

if ( nargin  = =1  ) 


Variable Documentation

A = zeros (min (nr, nc), length (c))

B = spdiags (m, c)

else[j, i, v] = find (v)

function[A, c]

Initial value:

 spdiags (v, c, m, n)

  if (nargin == 1 || nargin == 2)

    [nr, nc] = size (v)

i = j-c(:)(i)

idx = i > 0 & i <= m & j > 0 & j <= n

j = j(:) + offset(i)

for k

Initial value:

 1:length (c)
      idx = find (j-i == c(k))

endfor nc = size (m)

offset = max (min (c, nc-nr), 0)