PLOTCUBE

版本 1.0.0.0 (1.7 KB) 作者: Olivier
Plot a 3D-cube
16.7K 次下载
更新时间 2007/6/1

查看许可证

PLOTCUBE - Display a 3D-cube in the current axes

PLOTCUBE(EDGES,ORIGIN,ALPHA,COLOR) displays a 3D-cube in the current axes
with the following properties:
* EDGES : 3-elements vector that defines the length of cube edges
* ORIGIN: 3-elements vector that defines the start point of the cube
* ALPHA : scalar that defines the transparency of the cube faces (from 0
to 1)
* COLOR : 3-elements vector that defines the faces color of the cube

Example:
>> plotcube([5 5 5],[ 2 2 2],.8,[1 0 0]);
>> plotcube([5 5 5],[10 10 10],.8,[0 1 0]);
>> plotcube([5 5 5],[20 20 20],.8,[0 0 1]);

引用格式

Olivier (2024). PLOTCUBE (https://www.mathworks.com/matlabcentral/fileexchange/15161-plotcube), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Lighting, Transparency, and Shading 的更多信息
致谢

启发作品: rppd

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0