小编use*_*405的帖子

用Matlab绘制3-D RGB立方体模型

我写了这段代码来绘制RGB立方体,但是它的颜色不完全正确吗?

%Define a six row by four column matrix to define the six cube faces
fm = [1 2 6 5; 2 3 7 6; 3 4 8 7; 4 1 5 8; 1 2 3 4; 5 6 7 8]

%Define an eight row by three column matrix to define the vertices at which
%the faces meet
vm = [0 0 0; 1 0 0; 1 1 0; 0 1 0; 0 0 1; 1 0 1; 1 1 …
Run Code Online (Sandbox Code Playgroud)

matlab matlab-figure

5
推荐指数
1
解决办法
3366
查看次数

标签 统计

matlab ×1

matlab-figure ×1