Continue to Site

Code causes error "index exceeds mtrix dnsion"

Status
Not open for further replies.

Ngchris

Newbie
Newbie level 1
Joined
Aug 26, 2020
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
5
Please help - code causes error "index exceeds mtrix dnsion"

c11_all=c11_i(21,:); % channel realizations at 10dB SNR


range_11=0:0.1:max(c11_all);


max = 1:4;


count11=histc(c11_all,range_11);


count11_norm=cumsum(count11)/max(cumsum(count11));


comp_CDF_11=1-count11_norm;


%outage probability


j1= 1;


for i1=find(SNR_dB==2):find(SNR_dB==20)


c11_all=abs(c11_i(i1,:));


range11=0:0.1:max(c11_all);


count11=histc(c11_all,range11);


count11_norm=cumsum(count11)/max(cumsum(count11));


if(isempty(find(abs(range11-c_outage)<epsilon)))


outage11(j1)=1;


else


outage11(j1)=count11_norm(find(abs(range11-c_outage)<epsilon));


end


j1=j1+1;


end
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top