SDA Operator’s Manual
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 waveforn 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)
This very simple example adds a rescaled copy of Channel 2 to a copy of Channel 1, and then
rescales the result:
SDA-OM-E Rev H 273