Cube_center( cn, L, W, H, cl )

Draws a box (cube)
47 Downloads
Updated 12 Jan 2017

View License

Draws a box (cube) with the centroid "cn", dimensions L*W*H and color "cl".
The output is the plot and also the coordinates of all 8 corners. Example:
Cube_center( [0.2, 0.1, 0.2], 0.5, 0.8, 0.3, 'g' )

Cite As

Abolfazl Mohebbi (2026). Cube_center( cn, L, W, H, cl ) (https://www.mathworks.com/matlabcentral/fileexchange/61118-cube_center-cn-l-w-h-cl), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
Version Published Release Notes
1.0.0.0