This is how i am doing it:
x=[0,1,2,3,4,5,6,7,8,9]; % time
y=[1,1.1,2.2,1.3,1.4,1.3,2.9,1.4,1].*10^6; % curremt
plot(x,y);
Fs=50; %sampling frequency
T=1/Fs; % sampling time
L=length(y); %length of the signal
L1=x/T;
t=(0:L-1)*T; % time vector
NFFT=2^nextpow2(L);
y1=fft(y-mean(y))/L;
y2=2*abs(y1(1:NFFT/2+1)); % absolute value of fft
Nc= (y2).^2; % power spectral density
fc=Fs/2*linspace(0,1,NFFT/2+1); %frequency
plot(fc,Nc);
--------------------
is it the correct way to find the PSD?
Also, I need to do the curve fitting and find the coefficients. Could you please tell me how can I do that?
Nc= A+B/f^p <<<<<< how can i find this out?
Thanks,
Gaurav
"Nasser M. Abbasi" <
n...@12000.org> wrote in message <jmrgo5$l77$
1...@speranza.aioe.org>...