The matlab code models the free running behaviour of an oscillator. It accurately captures the close-in RF phase-noise spectrum by modeling the White and Flicker of frequency noise of a free running oscillator.
If you use the code, please reference the following paper.
O. Khan; B. Wheeler; F. Maksimovic; D. Burnett; A. M. Niknejad; K. Pister, "Modeling the Impact of Phase Noise on the Performance of Crystal-Free Radios," in IEEE Transactions on Circuits and Systems II: Express Briefs , vol.PP, no.99, pp.1-1 doi: 10.1109/TCSII.2016.2611643
keywords: {Mathematical model;Phase noise;Radio frequency;Solid modeling;Time-frequency analysis;Crystal-free radio;IEEE 802.15.4;Internet of Things (IoT);Minimum Shift Keying (MSK) modulation;OQPSK modulation;discrete time phase noise modeling;free-running oscillators;incoherent matched filter;low power radio;power law noise;quartz crystal (XTAL);wireless communication},
URL: http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=7572031&isnumber=4358609