X-Stream Operator’s Manual 
WM-OM-E Rev I  311 
Calling MATLAB from the Instrument 
Calling MATLAB 
Note: Load MATLAB version 6.5 just as you would on any PC. Once it is loaded, open MATLAB from the desktop, then 
close it again, before you attempt to open it from the instrument application. This is to update the registry. 
MATLAB can be directly called from the instrument in two ways: 
Using a function 
F1 through Fx The number of 
math traces available depends 
on the software options loaded 
on your scope. See 
Specifications. 
MATLAB returns a waveform 
Using a parameter 
P1 through Px  MATLAB returns a parameter 
In both cases, one call to MATLAB can use two separate waveforms as input, providing much 
greater computing power than is available by calling MATLAB from a VBScript. 
Note: If you do not place a semicolon ";" at the end of a line, MATLAB will show the calculated value in the result window, 
significantly slowing down the processing rate. This feature is best kept for diagnostics. 
How to Select a Waveform Function Call 
The MATLAB Waveform functions are selected from the Select Math Operator menu. Please note 
that once you have clicked on "MATLAB Wave" there will be a slight pause before MATLAB starts.