故障现象:如果键入命令如下
pcolor(peaks)
shading interp
text(30,30,'hello world');
在图中不能看到‘hello world’字样,那么恭喜你,有解决办法了,如下; change text(30,30,'hello world'); to text(30,30,1,'hello world'); 原因:pcolor is really a surf plot viewed directly above, therefore you need
to give your text a vertical offset so that it appears to be in front of
the image. 原来是需要要给text的内容所在的层的一个定义,就像PPT中的“置于顶层”那样的命令一样。 Bingo! 摘自:http://www.mathworks.com/matlabcentral/newsreader/view_thread/298118