Creating Your Own Matlab Function - LeCroy WaveRunner Xi series Operator's Manual

Oscilloscopes
Hide thumbs Also See for WaveRunner Xi series:
Table of Contents

Advertisement

O
'
M
PERATOR
S
ANUAL
Create pulses at the zero crossings of the signal.
Convolve two signals.

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 MA
TLAB
parameter editor as appropriate. A simple exam
ple is shown below.
function out = negatewf(wf1)
% NEGATEWF changes the sign of all the data.
out = -wf1;
215
WRXi-OM-E Rev C

Advertisement

Table of Contents
loading

Table of Contents