...
Run the layout in Designer.
Start a measurment using the module's inspector.
Get the running layouts structure in Matlab:
Code Block >> GSYS = get_gsys();
Next read out the stimulus and response in Matlab command window:
Code Block >> x = GSYS.SYS.MeasurementV21MeasurementV2_1.response; >> z = GSYS.SYS.MeasurementV21MeasurementV2_1.stimulus;
Next compute the transfer function and plot it. For example, if you have the signal processing toolbox you can do:
Code Block >>[tf, f] = tfestimate(z,x,[],[],[],48000); >> plot(f,abs(tf));shg
...