Close a I/O port device 'handle'. This works for all device types.
Screen('
Close',
[windowOrTextureIndex or list of textureIndices/offscreenWindowIndices
]);
Close an onscreen or offscreen window or a texture. If the optional
windowOrTextureIndex isn't provided, then all textures and offscreen windows are
closed/deleted while regular onscreen windows are left open. If you want to
close a subset of your offscreen windows or textures, but not all of them you
can also pass in a vector of texture/offscreen window handles and all handles in
the vector will be closed.
Close a
PortAudio audio device. The optional 'pahandle' is the handle of the
device to close. If pahandle is omitted, all audio devices will be closed and
the driver will shut down.
Call this function when finished with Datapixx.