![LeCroy WaveRunner 104MXI Operator'S Manual Download Page 210](http://html1.mh-extra.com/html/lecroy/waverunner-104mxi/waverunner-104mxi_operators-manual_1866369210.webp)
W
AVE
R
UNNER
X
I
S
ERIES
210
WRXi-OM-E Rev B
MATLAB Waveform Function Editor - Example
By touching
Edit Code
, you can reach the MATLAB Editor where you will see the default waveform function. If
you are familiar with MATLAB, you might prefer to launch MATLAB and create a MATLAB function that performs
your task. Your program in the instrument could then be a one-line call of your MATLAB function.
This is the default waveform function, with one important change – the semi-colon (;) has been removed from the
end of the line. If the semicolon is present, your function will run much faster, because the output values will not
be shown in MATLAB Response. With a long waveform, the time needed to display it could be quite long. The
response values can be useful during development and debugging. Any line without a semicolon will produce a
visible MATLAB Response.
From this panel you can save your code, load a previous code, and edit your function. A powerful feature of
MATLAB is that you can refer to an entire waveform as a vector. The two input waveforms are WformIn1 and
WformIn2, while the output is WformOut. You can also refer to individual samples, such as WformIn1(34), and
sequences of samples, such as WformIn(55:89)
You can write statements such as these:
WformOut(5) = WformIn(5)
WformOut(89) = WformIn(144)
WformOut(34:55) = WformIn(34:55)
WformOut(233:377) = WformIn(100:244)