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

    %% Log Input Data
%%
% *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).

hlog = dsp.SignalSink;
 for i=1:10
     y = sin(i);
     hlog(y);
 end
log = hlog.Buffer; 
display(log);