1、命令行键入:C = [1 2 3 4; 5 6 7 8; 9 10 11 12];%定义C的值。

2、命令行键入:im = image(C);%显示图形。

3、命令行键入:colormap(colorcube)%上色

4、命令行键入:x = [-1 2];%定义x的值。

5、命令行键入:y = [2 4];%定义y的值。

6、命令行键入:figure%给出图形窗口

7、命令行键入:image(x,y,C)%显示图形。

8、命令行键入:colormap(colorcube)%上色。

时间:2024-10-12 13:40:00
1、命令行键入:C = [1 2 3 4; 5 6 7 8; 9 10 11 12];%定义C的值。
2、命令行键入:im = image(C);%显示图形。
3、命令行键入:colormap(colorcube)%上色
4、命令行键入:x = [-1 2];%定义x的值。
5、命令行键入:y = [2 4];%定义y的值。
6、命令行键入:figure%给出图形窗口
7、命令行键入:image(x,y,C)%显示图形。
8、命令行键入:colormap(colorcube)%上色。