%% Peak-Magnitude-to-RMS Ratio of Complex Exponential
% Create a complex exponential with a frequency of \pi/4 rad/sample. Find the peak-magnitude-to-RMS ratio.

n = 0:99;
x = exp(1j*pi/4*n);

y = peak2rms(x)

% Copyright 2015 The MathWorks, Inc.