RMS of non sinusoidal wave
13 次查看(过去 30 天)
显示 更早的评论
I have a signal sampled at 5000 samples per second . and I have 5 second .please tell me how yo get the RMS of non sinusoidal wave by matlab
I knew that for sinusoidal wave we do this
ac_signal = YourSignal - mean(YourSignal(:));
rms = sqrt( mean(ac_signal.^2) );
0 个评论
采纳的回答
Star Strider
2016-4-2
You get it just the way you calculated it in your ‘rms’ assignment. It’s the square root of the mean of the squared magnitude of the signal.
2 个评论
Star Strider
2016-4-2
That doesn’t make any difference.
Remember that all signals can, in Fourier space, be decomposed into a (usually finite but potentially infinite) concurrent series of sinusoids with possibly different amplitudes and possibly different phases. Put it into that context, and it doesn’t matter if your actual waveform appears to be sinusoidal. It’s simply a series of concurrent, additive sinusoids.
You would also consider the d-c offset as part of the RMS voltage of a sinusoidal waveform, for example, so it is not absolutely necessary to remove the mean from the waveform first. It depends on your application.
更多回答(1 个)
Muhammad Usman Saleem
2016-4-2
编辑:Muhammad Usman Saleem
2016-4-2
in order to calculate some RMS error for your signal, you require two points
(1) YourOrginalSignal
(2) ExtimatedSignal
Then you can calculate RMS error as
RMS=sqrt(sum(YourOrginalSignal (:)-ExtimatedSignal (:))/N)
where N may be total no of samples in YourOrginalSignal
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!