Power calculation of various frequency components in a time varying signal

Hi,
Just wanted to see if I am carrying out an apporporiate steps to achieve my aim.
I am have time varying signal x(t) or as defined in matlab "x" with multiple frequency components, which represents an electrical signal in mA. I am interested to see the resulting power contained at various frequencies in dBm or watts.
My method is as follows:
.to get the time varying power I write y=(x^2)*Resistance
.get the frequency spectrum of y as maybe yf=fft(y)
.and finally use yf to find the power at frequncies needed which should be in Watts
is this a correct method, if not what would you suggest.
Arsalan

Categories

Find more on MATLAB in Help Center and File Exchange

Products

Asked:

on 12 Jan 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!