在MATLAB中重叠图

时间:2014-09-29 10:49:31

标签: matlab plot

我目前有一个轮廓图,就像这里的

enter image description here

http://www.originlab.com/www/helponline/Origin/en/mergedProjects/Tutorial/images/Contour_Plot_with_Major_and_Minor_Levels_Filled_by_Using_Color_Palette/Graph_Gallery_Contour_Plot_Palette_16.png

现在我想在长度宽度平面上添加一些简单的函数图,比如f(width)= width ^ n等,但我不知道如何重叠这两个图。

1 个答案:

答案 0 :(得分:5)

因此,您希望在添加新图表时保留当前图表:使用hold on。请参阅http://www.mathworks.nl/help/matlab/ref/hold.html