beautypg.com

Creating your own matlab function – Teledyne LeCroy WaveRunner XI SERIES Operator’s Manual User Manual

Page 215

background image

O

PERATOR

S

M

ANUAL

Create pulses at the zero crossings of the signal.

Convolve two signals.

Creating Your Own MATLAB Function

TLAB

ple is shown below.

function out = negatewf(wf1)

% NEGATEWF changes the sign of all the data.

out = -wf1;

The procedure is simple. Create a MATLAB function using any text editor, and save it as a MATLAB m-file by
giving it a name of the form Filename.m. Call the function using the MATLAB math editor or the MA
parameter editor as appropriate. A simple exam

WRXi-OM-E Rev C

215