**使用系统内置的colormap**
```
syms x y
ezmesh(x*exp(-x^2-y^2),[-2.5,2.5],40)
colormap(hot)
```

自定义colormap
```
syms x y
ezmesh(x*exp(-x^2-y^2),[-2.5,2.5],40)
colormap([0,1,0.5 ;1,0,0]) //分成两部分,分别映射成红色和绿色
```

```
syms x y
ezmesh(x*exp(-x^2-y^2),[-2.5,2.5],40)
colormap([0,1,0.5;1,0,0;0,0,0]) //分成3部分,由图可以看出是按函数值的大小映射颜色
```

__来一个更漂亮的__
```
mymap = [0 0 0;1 0 0;0 1 0;0 0 1;1 1 1];
surf(peaks);
colormap(mymap);
```
、

<wiz_tmp_tag id="wiz-table-range-border" contenteditable="false" style="display: none;">