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

Draws a box (cube)
46 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 (2024). 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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0