Anonymous - 2014-02-25

In the toolbox spgl, you can find a function doing it. You can use it to test your code