dimanche 12 avril 2015

how to plot multiple cdf in one figure


Vote count:

0




I want to plot cdf of all C_macro,C_pico1 and C_pico2 from this code in one figure:



if (Pr>Prp) & (Pr>=Prp1)
C_macro=B1.*log2(1+(Pr/Pn_macro));
else if (Prp>Pr) & (Prp>=Prp1)
C_pico1=B2/2.*log2(1+(Prp/Pn_pico));
else
C_pico2=B2/2.*log2(1+(Prp1/Pn_pico)) ;
end
end


I know, it should be done by



cdfplot(C_macro);
hold on
cdfplot(C_pico1);
hold on
cdfplot(C_pico2);


Unfortunately, Matlab is showing result only for "cdfplot(C_macro)"; for remaining two it is showing error msg:undefined function or variable. Can anyone please help?



asked 15 secs ago







how to plot multiple cdf in one figure

Aucun commentaire:

Enregistrer un commentaire