The following Matlab project contains the source code and Matlab examples used for draw cuboid. Creates an 6 face cuboid patch object. User inputs are for center of volume, orientation, color, transparency and side lengths. The function returns the object handle as well as the face and vertex matrices.
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.