power of a signal

127 次查看(过去 30 天)
Tina
Tina 2013-4-8
评论: Yazan 2021-6-30
Hello;
How can I measure the power of a signal in MATLAB or simulink?
  1 个评论
Yazan
Yazan 2021-6-30
I am assuming that you have a sampled time-domain signal. The power then can be estimated through:
% example: sinusoidal signal
fs = 1; % sampling frequency
t = 0:1/fs:127; % time instants at which the signal is measured
x = cos(2*pi*0.1*t);
pwrx1 = rms(x)^2;
The power can be estimated through the spectrum.
pwrx2 = bandpower(x, fs, [0 fs/2])
See some details here.

请先登录,再进行评论。

回答(2 个)

Image Analyst
Image Analyst 2013-4-8
What are the units of your signal? What definition of power are you using? It all depends on what you're starting with and what your definition is. For example with images, the gray level is a unit of energy so to get power you'd have to divide by the exposure time, but then you have to ask if you want the total power integrated over the whole image, or the power on just individual pixels.
  4 个评论
Youssef  Khmou
Youssef Khmou 2013-4-9
Watts or Decibel
Image Analyst
Image Analyst 2013-4-9
If the units area already watts, then you already have power. You have a power for each and every element. So then what does "power of the signal" mean in that case? The individual elemental power summed or averaged over all elements???

请先登录,再进行评论。


Youssef  Khmou
Youssef Khmou 2013-4-8
hi,
1)Go to Mathw(c) workspace and type :
>>dpslib
2)then go and click on "Estimation" block ,
3) click on "Power Spectrum Estimation" .
4) You have six components : "Periodogram" , "Magnitude FFT","Yule-Walker Method" ," Covariance Method" ,"Burg Method" , and " modified covariance method", choose one of them and link it in your model with a scope to visualize the frequency and the Power .
Note : the Power of AWGN is its STD ( Standard deviation)
  3 个评论
Tina
Tina 2013-4-8
my signal is a gaussian white noise, so its power is its STD? how do I get its STD then?
Youssef  Khmou
Youssef Khmou 2013-4-8
1)dsplib.
2) Statistics .
3) Standard Deviation .

请先登录,再进行评论。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by