Discrete-time simulation of smart antenna systems in Network Simulator-2 Using MATLAB and Octave