Bernoulli sensing matrix for compressed sensing using matlab

조회 수: 1 (최근 30일)
Mohab Mostafa
Mohab Mostafa 2015년 10월 7일
댓글: Walter Roberson 2015년 10월 7일
I am trying to implement compressed sensing in matlab, also trying different types of sensing matrix (Gaussian, Bernoulli, Fourier), and I have problems implementing -+1 Bernoulli random matrix as a sensing matrix, I am generating it as follows:
p=0.5;
A=(rand(M,256)<p);
A=A*2-1;
where M is
M => C*K*log(N/K)
N is the vector length, K is the non-zero coefficients, is that correct?
  댓글 수: 1
Walter Roberson
Walter Roberson 2015년 10월 7일
Your M does not appear to be restricted to non-negative integers, which would be required to use as the number of rows for rand()

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Random Number Generation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by