www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/PeaktoRMSRatioOfMatrixInputExample.m
%% Peak-to-RMS Ratio of Matrix Input %% % *Note*: This example runs only in R2016b or later. If you are using an % earlier release, replace each call to the function with the equivalent % |step| syntax. For example, myObject(x) becomes step(myObject,x). %% % Determine the peak-to-RMS ratio of a matrix input. in2 = magic(4); h2 = dsp.PeakToRMS; h2.Dimension = 'All'; y2 = h2(in2)