bpdq_generate_sensing_matrix

PURPOSE ^

bpdq_generate_sensing_matrix : Compute pseudorandom sensing matrix

SYNOPSIS ^

function A=bpdq_generate_sensing_matrix(M,N,seed)

DESCRIPTION ^

 bpdq_generate_sensing_matrix : Compute pseudorandom sensing matrix

 A=bpdq_generate_sensing_matrix(M,N,seed)

 Generates M x N Gaussian random matrix

 Inputs :
 M,N - dimensions of matrix
 seed - (optional) seed for random number generator

 Outputs :
 A - M x N matrix with zero mean, unit variance i.i.d. Gaussian entries.

 This file is part of BPDQ Toolbox (Basis Pursuit DeQuantizer)
 Copyright (C) 2009, the BPDQ Team (see the file AUTHORS distributed with
 this library) (See the notice at the end of the file.)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % bpdq_generate_sensing_matrix : Compute pseudorandom sensing matrix
0002 %
0003 % A=bpdq_generate_sensing_matrix(M,N,seed)
0004 %
0005 % Generates M x N Gaussian random matrix
0006 %
0007 % Inputs :
0008 % M,N - dimensions of matrix
0009 % seed - (optional) seed for random number generator
0010 %
0011 % Outputs :
0012 % A - M x N matrix with zero mean, unit variance i.i.d. Gaussian entries.
0013 %
0014 % This file is part of BPDQ Toolbox (Basis Pursuit DeQuantizer)
0015 % Copyright (C) 2009, the BPDQ Team (see the file AUTHORS distributed with
0016 % this library) (See the notice at the end of the file.)
0017 
0018 function A=bpdq_generate_sensing_matrix(M,N,seed)
0019   if (nargin==3)
0020     randn('seed',seed);
0021   end
0022   A = randn(M,N);
0023   
0024 % The BPDQ Toolbox is free software: you can redistribute it and/or modify
0025 % it under the terms of the GNU General Public License as published by
0026 % the Free Software Foundation, either version 3 of the License, or
0027 % (at your option) any later version.
0028 %
0029 % The BPDQ Toolbox is distributed in the hope that it will be useful,
0030 % but WITHOUT ANY WARRANTY; without even the implied warranty of
0031 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0032 % GNU General Public License for more details.
0033 %
0034 % You should have received a copy of the GNU General Public License
0035 % along with The BPDQ Toolbox.  If not, see <http://www.gnu.org/licenses/>.

Generated on Mon 06-Jul-2009 14:16:10 by m2html © 2003