# adding phase noise in signal thorugh freuquency

I want to implement a simple signal for phase noise. According to my supervisor, i shoud be adding phase noise in the frquency. This is my signal. A = cos(2*pi*fc*t) and signal with phase noise B = cos(2*pi*(fc+deltaf)*t). here how shoud i define delta f?

After that when i analyse both signals using fft, spectrum of B signal should be broader than spectrum of A signal.

First - this will depend on the nature of the phase noise you wish to model. If deltaf is a constant then it is just a frequency shift and really isn't considered phase noise. What you really need is deltaf to be a noise vector the same length as t. In matlab format you can do this by:

t=0:255;
fc=0.2; %just an example
deltaf = 0.001*randn(size(t));
B=cos(2*pi*(fc+deltaf).*t);


Notice that the frequency will have a finite variance in this case - but the phase variance will increase linearly over time - this may or may not be what you want. To have a finite phase variance you would do something like

t=0:255;
fc=0.2; %just an example
ph_n = 0.0001*randn(size(t));
B=cos(2*pi*fc*t+2*pi*ph_n);


Typically you can analyze these signals by using trigonometric identities and then assuming the noise portion is small or by using Taylor series expansions for the noise components.