beautypg.com

Operator’s manual – Teledyne LeCroy WaveExpert 100H Operators Manual User Manual

Page 310

background image

Operator’s Manual

308

WE-OM-E Rev A

Creating Your Own MATLAB Function

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 MATLAB parameter editor as appropriate. A simple example is shown below.

function out = negatewf(wf1)

% NEGATEWF changes the sign of all the data.

out = -wf1;