How to draw curves in a contour plot

조회 수: 5 (최근 30일)
Simon Becker
Simon Becker 2014년 9월 29일
편집: Mischa Kim 2014년 9월 29일
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.

답변 (1개)

Mischa Kim
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

카테고리

Help CenterFile Exchange에서 Wind Power에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by