How to draw curves in a contour plot
4 次查看(过去 30 天)
显示 更早的评论
I currently have a contour plot, just like this one here Plot example, now I want to add some simple plots of functions in the length width plane, like f(width) = width^n and so on, but I don't know how to overlap these two plots.
0 个评论
回答(1 个)
Mischa Kim
2014-9-29
编辑:Mischa Kim
2014-9-29
Simon, use
hold on
before the second plot command. E.g.
x = 0:0.1:2*pi;
y = sin(x);
z = cos(x);
plot(x,y) % corresponds to your existing plot
hold on
plot(x,z) % additional plots...
plot(x,z.^3) % ...you want to add
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!