MATLAB vs Python Computational Speed

Windows Edition Windows 8.1 Pro System Processor Intel(R) Core(TM) i7-5500U CPU @ 2.4GHz Installed Memory 8.00 GB System Type 64 Bit Operating System, x64 Based Processor Integrated Development Environment (IDE) Enthought Canopy Version 2.1.3.3542 (32 bit) Operation Time in sec (MATLAB) Time in sec (PYTHON) 10 million uniform random variable generation 0.10 0.15 10 million normal random variable generation 0.13 0.40 for loop counting up to 100 million 0.40 11.60 Comparing two vectors of length 10 million each 0.39 0.55 Plotting a histogram of 10 million values 0.89 0.76 Plotting a scatter plot of 1 million values 0.30 0.23 Bit […]

Read more

Fast Fourier Transform – Code

Most of us have used the FFT routine in MATLAB. This routine has become increasingly important in simulation of communication systems as it is being used in Orthogonal Frequency Division Multiplexing (OFDM) which is employed in 4G technologies like LTE and WiMAX. We would not go into the theoretical details of the FFT, rather, we would produce the MATLAB code for it and leave the theoretical discussion for a later time. The underlying technique of the FFT algorithm is to divide a big problem into several smaller problems which are much easier to solve and then combine the results in […]

Read more