Mathematica绘制像素图——Image的用法
1、Image[{{0.1,0.2,0.3},{0.4,0.5,0.6},{0.7,0.8,0.9}}]把数字矩阵转化为黑白的像素图。

2、对比于MatrixPlot把上面的矩阵变成像素图:MatrixPlot[{{0.1,0.2,0.3},{0.4,0.5,0.6},{0.7,0.8,0.9}}]

3、给出一个三维随机矩阵:RandomReal[1,{8,10,3}]//MatrixForm

4、用Image把这个随机矩阵转化为像素图:Image[RandomReal[1,{8,10,3}]]

5、MatrixPlot[RandomReal[1,{8,10,3}]]是绘制不出图形来的,因为Mathematica不认为那是一个矩阵!下面的代码可以运行:MatrixPlot[RandomReal[1,{8,10}]
