資源簡介
This function plots a 3D-Cube.
You can choose orientation, size, rotaion, colors and transparency.
The ZIP-file contains some examples of using this function to create animations or objects.

代碼片段和文件信息
plot3([-10?10?10?-10?-10?10?10?-10][-10?-10?-10?-10?10?10?10?10][-10?-10?10?10?-10?-10?10?10]‘k.‘);
for?cntf?=?1:1:1000
????color1?=?0.5+sin(2*pi*cntf/1000)/2;
????color2?=?0.5+sin(3*pi*cntf/1000)/2;
????color3?=?0.5+sin(4*pi*cntf/1000)/2;
????color4?=?0.5+sin(5*pi*cntf/1000)/2;
????color5?=?0.5+sin(6*pi*cntf/1000)/2;
????color6?=?0.5+sin(7*pi*cntf/1000)/2;
????color7?=?0.5+sin(8*pi*cntf/1000)/2;
????color8?=?0.5+sin(9*pi*cntf/1000)/2;
????h1?=?plotcube([5*cos(4*pi*cntf/1000)?5*sin(4*pi*cntf/1000)?0][5?5?5][2*pi*cntf/100?pi*cntf/100?0][?color1?color2?color3?color4?color5?color6?color7?color8]0.5+sin(4*pi*cntf/1000)/21);?pause(0.04);
????delete(h1);
end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????690??2006-11-13?11:07??example1.m
?????文件?????????352??2006-11-13?10:54??example2.m
?????文件?????????956??2006-11-13?10:55??example3.m
?????文件????????3922??2006-11-13?11:07??plotcube.m
- 上一篇:單載波頻域均衡MMSE的代碼
- 下一篇:基于差值法的圖像變化檢測代碼MATLAB
評論
共有 條評論