Spectral density and average frequency

AI Thread Summary
The discussion focuses on solving for the mean angular frequency, represented as x', using spectral density data in MATLAB. The user attempts to calculate x' by applying Equation 10.25, where the numerator is computed as a weighted sum of x and y values, and the denominator is derived using the trapezoidal integration method. Despite following this approach, the user reports that the resulting answer is incorrect and seeks clarification on potential mistakes. The context suggests this is related to graduate-level coursework. Assistance is requested to ensure accurate calculations in MATLAB for the given spectral density data.
doop4
Messages
4
Reaction score
0
Essentailly what I am interested is to solve Equation 10.25 in the following link

<http://books.google.co.uk/books?id=Hwb5D60vb5IC&pg=PA701&lpg=PA701&dq=%22mean+angular+frequency%22&source=bl&ots=dSH6fzeZNC&sig=GB5J8nwpLCIULGhAHZLAm0RxgLM&hl=en&ei=NubNSpKqO92NjAeqwKmHBA&sa=X&oi=book_result&ct=result&resnum=9#v=onepage&q=%22mean%20angular%20frequency%22&f=false>

ie. solve for the mean angular frequency. Let's call it x' where

x'=integral(x*y(x).dx)/integral(y(x).dx) % Equation 10.25 where y(x) is the spectral density and x is the angular frequency.

I have data for the spectral density values for a given angular frequency


y=[6.2770
10.5137
14.8385
19.2196
21.5972
19.6632
15.2690
10.9238
6.5569]

x=[ 2.6097
2.6158
2.6259
2.6314
2.6501
2.6615
2.6633
2.6654
2.6659]

How can I solve for x' using the above data in Matlab?

My understanding is that the numerator is essentially:

sum[x*y(x)] for the given values of x and y (ie a weighted form ). therefore I have

numerator=x.*y;

the bottom is the integral so i tried using the MATLAB function trapz(x,y) to calculate that as well.

denominator =trapz(x,y);

therefore x'=numerator/denominator

But the answer I get is incorrect. I am not sure where my mistake is. Any help will be much appreciated!
 
Engineering news on Phys.org
Is this schoolwork or work-work? It needs to be posted in different places, depending.

Quiz Question -- Why?
 
It's sort of "home work" of a grad. Any ideas on a solution?
 
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
suppose you have two capacitors with a 0.1 Farad value and 12 VDC rating. label these as A and B. label the terminals of each as 1 and 2. you also have a voltmeter with a 40 volt linear range for DC. you also have a 9 volt DC power supply fed by mains. you charge each capacitor to 9 volts with terminal 1 being - (negative) and terminal 2 being + (positive). you connect the voltmeter to terminal A2 and to terminal B1. does it read any voltage? can - of one capacitor discharge + of the...
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Back
Top