On 4-Mar-2009, Jaroslav Hajek wrote:
| diag(sparse(vector)) * sparse matrix,
| obviously. It will be less efficient than with dense matrices, but will work.
Ah, OK, then I think the spdiag function should be modified to detect
that the argument is a vector with more than one element and do the
above instead of simply calling diag (varargin{:}).
jwe