立方体旋转程序 /* Rotating cube with color interpolation */ /* Demonstration of use of homogeneous coordinate transformations and simple data structure for representing cube from Chapter 4 */ /* Colors are assigned to the vertices */ /* cube is centered at
使用Matlab自动放大的Mandelbrot集生成
Mandelbrot集是通过可视化复杂函数的收敛获得的形式分形 对于不同的价值在复杂的计划中。
指示
Matlab中无需安装任何工具箱。
结果
获得以下结果 和 和
在这里,为了选择颜色,我们使用存在于matlab中的标量颜色图与:
colormap jet % this line can be changed in the file MandelbrotSet_zoom.m
我们得到
改变颜色
可以使用不同的颜色图,例如: