**使用系统内置的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),[-…
print(figure_handle,'formats','-rnumber','filename') %将图形保存为png格式,分辨率为number的(默认为72),最好指定的分辨率大一点,否则保存图形的效果较差. %Save the figure with the handle h to a PostScript file named Figure1, which can be printed later: h = figure; %指定图片打印figure handle plo…