power of a signal
이전 댓글 표시
Hello;
How can I measure the power of a signal in MATLAB or simulink?
댓글 수: 1
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])
답변 (2개)
Image Analyst
2013년 4월 8일
0 개 추천
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
Tina
2013년 4월 8일
Image Analyst
2013년 4월 9일
What are its units? Volts? Watts? Gray levels? It matters!
Youssef Khmou
2013년 4월 9일
Watts or Decibel
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
2013년 4월 8일
0 개 추천
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
Youssef Khmou
2013년 4월 8일
does this work? if no, then we can see other way
Tina
2013년 4월 8일
Youssef Khmou
2013년 4월 8일
1)dsplib.
2) Statistics .
3) Standard Deviation .
카테고리
도움말 센터 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!