Code covered by the BSD License  

Highlights from
Greedy Algorithms promoting Group Sparsity V3

from Greedy Algorithms promoting Group Sparsity V3 by Angshul Majumdar
Approximate Greedy Solutions to the problem min||x(k)||_2,0 such that Ax = b

A=matrix_normalizer(B)
function A=matrix_normalizer(B)

[m n] = size(B);

for i = 1:n
    A(:,i) = B(:,i)/norm(B(:,i));
end

Contact us at files@mathworks.com