plot_teb - display teb curve on a graphic window
plot_teb(nwin,sig_log,teb,flag)
- nwin : id of the figure
- sig_log : vector of real. the x-axis vector (Eb/No [dB])
- teb : the y-axis vector
- flag : set 1 to plot a grid
//////////////////////////////////////
//Function plot_teb
//
//Fonction qui affiche une courbe de TEB dans une fenetre graphique
//
//nwin : numéro de fenêtre
//sig_log : le vecteur de l'axe x
//teb : le vecteur de l'axe y
//flag : option 1 : dessine une grille
function []=plot_teb(nwin,sig_log,teb,flag)
xset("window",nwin);
xset("wdim",300,200);
xbasc();
for i=1:size(teb,1)
if teb(i)==0 then teb(i)=%eps,end;
end
plot2d("nl",sig_log,teb,-6);
plot2d("nl",sig_log,teb);
if flag=="1" then
xgrid();
end
endfunction
IRCOM Group
Alan Layec