Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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