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

Draws a box (cube)

You are now following this Submission

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 .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0