MATLAB How to integrate Pwelch with Matlab

  • Thread starter windsea
  • Start date
Dears,

Please help hem in order to resolve this problem.

I estimated an power spectral density using welch method with Matlab program (Pxx).

Now, I want apply this integration

m[n] := Integral from f=0.0001 to f=0.001 over S(f) * f ^ n . In my case I think that m[n] := Integral from f=0.0001 to f=0.001 over Pxx(f) * f ^ n !

After several tests I did not succeed to make this integration.

Please help me in view to intruduce this application within my code:

Code:
load wave.dat
x=wave(:,1);
fs=0.011;
u = length(x);
[Pxx,f] = pwelch(x,800,400,u,fs)
pwelch(x,800,400,u,fs)
f=0.00001 :0.0000.1/100 :0.0001 ;n=0
Z=trapz(f,Pxx)*f^n
I send also the continuous equation in the attached file
Thank you in advance

Windsea
 

Attachments

Want to reply to this thread?

"How to integrate Pwelch with Matlab" You must log in or register to reply here.

Related Threads for: How to integrate Pwelch with Matlab

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top