contour的用法,请大家帮忙!
file:///C:/Documents%20and%20Settings/luoxuemei/Application%20Data/Tencent/Users/364418022/QQ/WinTemp/RichOle/M())1)]FUT1T2O1TWT3ARK7.jpg 怎么样同时画出两幅图的登高线啊?用contour的话一个会覆盖另一个的,有什么好办法推荐一下本帖最后由 happy 于 2012-10-19 10:28 编辑
= meshgrid(-2:.2:2,-2:.2:3);
Z = X.*exp(-X.^2-Y.^2);
= contour(X,Y,Z);
set(h,'ShowText','on','TextStep',get(h,'LevelStep')*2)
colormap cool
hold on;
Z = X.*exp(-2*X.^2-0.5*Y.^2);
= contour(X,Y,Z);
set(h,'ShowText','on','TextStep',get(h,'LevelStep')*2)
colormap cool
是这个意思吗?
页:
[1]