beautypg.com

Teledyne LeCroy WaveExpert 100H Operators Manual User Manual

Page 301

background image

Wave Expert

WE-OM-E Rev A

299

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)