Scale_Power(Ref_sig​nal,Target_signal)

Modify the signal power to make Target signal power equals a Reference signal power
26 Downloads
Updated 6 May 2016

View License

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
Created with R10
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0