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 |
if | ( | nargin | = =1 |
) |
B = spdiags (m, c) |
function[A, c] |
i = j-c(:)(i) |