Home > other >  MATLAB index exceeds matrix dimension
MATLAB index exceeds matrix dimension

Time:10-06

CLC
clear all;
close all;


% % raw input signalN=1088; % sparse signal length, 32 * (32 + 2)=1088
K=30;

% % generated information matrix
X0=randperm (N); % to disrupt the number of order of 1 to N
Index0=x0 (1: K); % after taking the order before the array (sparse degree K), K as a subscript
X0=zeros (N, 1);
X0 (index0)=1; For matrix x % fu non-zero value

% %
M=20; Article % path number
For (I=1: M)

C=zeros (1108);
Line % % to generate random matrix

A=rand (1108);

% %
Y=0;
For L=32: - 1
A0=[((L - 1) * (m + 1) + 1) : L * (L + 2)] % the size of each layer ring 3:5:7... Add
Rand=randperm (length (a0))
Index1=rand (1:1)
M=a0 (index1)
A=a (m)
C (m)=a
V=x0 (m)
Y=y + a * v
End
Y (I, 1)=Y;
B (I)=C;
end

CodePudding user response:

From the top!!!!!!!!!!
  • Related