www.gusucode.com > dsp 案例源码程序 matlab代码 > dsp/PeaktoPeakValueOfMatrixInputExample.m

    %% Peak-to-Peak Value 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-peak value of a matrix input.
in2 = magic(4);
h2 = dsp.PeakToPeak;
h2.Dimension = 'All';
y2 = h2(in2)