peak2rms This function calculates the ratio of peak magnitude to the Root Mean Square(RMS) value. Calling Sequence OUT=peak2rms(IN) OUT=peak2rms(IN,orientation) Parameters in: Vector or Matrix of real or complex elements. orientation: A string with possible values "r", "c" or "m" giving the dimension along which the peak2rms value is to be calculated. out: A scalar with real value when input is a vector.When input is a matrix, out is the peak magnitude to RMS value along the orientation specified or the default one when not specified. Description For vector as input, the output is the ratio of peak value to the RMS value. The RMS value can be calculated by taking the square root of mean value of the squared sum of the elements. When a matrix is given as input the output is peak to RMS ratio in the orientation specified. The orientation can be given as string with values "r","c" or "m". peak2rms(in, 1) calculates the values of ratio of peak to RMS of columns of matrix. The output in this case is a row vector with peak2rms value of each column of in. peak2rms(in, 2) calculates the values of ratio of peak to RMS of rows of matrix, where the output would be a column vector having peak2rms value of each row of in. The default orientation is chosen to be the index of first dimension of input greater than 1.Hence peak2rms(in) is equivalent to peak2rms(in, "m"). For an N dimensional array the orientation is the index of first non singleton dimension of the array. If the elements of matrix are complex the absolute values are considered in the calculation of RMS value. Examples Examples