In ADS Ptolemy is a measurement *spec_power()*, which integrates a spectrum and returns the total power within the given bandwidth. Is there a similar function in SystemVue or how to calculate this measurement using Math Language?

In ADS Ptolemy is a measurement *spec_power()*, which integrates a spectrum and returns the total power within the given bandwidth. Is there a similar function in SystemVue or how to calculate this measurement using Math Language?

- Here is a slightly different version that allows you to specify the upper and lower limits of the frequency band over which you want to integrate the power:

% This examples assumes that the spectrum data is saved in the variable Spectrum_Power

% and that the independent variable for Spectrum_Power is Spectrum_Power_Freq.

% This will NOT work with swept data.

StartFreq = 2e3; % Specify start frequency in Hz

StopFreq = 200e3; % Specify stop frequency in Hz

DeltaF = Spectrum_Power_Freq(2) - Spectrum_Power_Freq(1);

StartIdx = floor( StartFreq / DeltaF );

StopIdx = ceil( StopFreq / DeltaF );

TotalPwr = 10*log10( sum(Spectrum_Power(StartIdx:StopIdx)))+30;

Where the 100:200 is the indices of a particular frequency band that you want to integrate over.