Scale_Power(Ref_signal,Target_signal)
Inputs:
1- Ref_signal: A signal that its power is used as a metric
2- Target_signal: A signal that its samples will be modified to make the
power equals the Ref_signal power.
Scaling the powers is done using the following algorithm:
A- Estimate the average power of the Reference Signal
Reference_power = sum(abs(Ref_signal.^2))/N
B- Estimate the average power of the Target signal
Target_power = sum(abs(Target_signal.^2))/N
C- Calculate the Power Ratio Scale PRS
PRS = sqrt(Reference_power/Target_power)
D- Scale the Target_signal samples to the desired power using the
following formula:
Scaled_Target_signal = Target_signal.*PRS;
NOTE: order is important here, where the target signal samples are
modified.
Cite As
Azhar Abdulaziz (2024). Scale_Power(Ref_signal,Target_signal) (https://www.mathworks.com/matlabcentral/fileexchange/56958-scale_power-ref_signal-target_signal), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |