K=128;N=4;QPSk_Set=[1 -1 1j -1j];Phase_Set=[1 -1];MAX_SYMBOLS=1e5;PAPR_Orignal=zeros(1,MAX_SYMBOLS);PAPR_SLM=zeros(1,MAX_SYMBOLS);X=zeros(N,K);Index=zeros(N,K);for nSymbol=1:MAXSYMBOLS Index(1,:)=randi(1,K,length(QPSK_Set))=1; Index(2:N,:)=randi(N-1,K,length(Phase_Set))+1;endthe error ' Index(1,:)=randi(1,length(QPSk_Set))+1 '
I need help ! How do i solve it??
Best Answer