This is a simple script to generate an arbitrary waveform on an Agilent 33220a connected over USB/GPIB. There was a complete lack of documentation to do this using MATLAB and none of the driver objects/methods were documented anywhere, so this should provide you with everything you need to get started.
For driver setup, see page 59 here:
Note that the Keysight IO Libraries Suite is also required (tested on version 17.1 update 1).
Create scripts with code, output, and formatted text in a single executable document.