sparsediag sparse diagonal matrix.
D = sparsediag(V) is equivalent to sparse(diag(V))
Copyright (c) 2016 Antti Lehikoinen / Aalto University