Code covered by the BSD License  

Highlights from
Non Convex Compressed Sensing for Non Gaussian Noise

from Non Convex Compressed Sensing for Non Gaussian Noise by Angshul Majumdar
optimization of the form min ||x||_p subject to ||y-Ax||_q
GenProb(m,n,k)
function [y, A, x0] = GenProb(m,n,k)

x0 = zeros(n,1);
P = randperm(n);
x0(P(1:k)) = randn(k,1);

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

y = A*x0;

Contact us at files@mathworks.com