How can I plot three catenary functions in one plot?

How can I plot three catenary functions in one plot?The middle one is upside down. I guess I can create a symmetric of this, how should I do the x-axis symmetry?All three in one plot. Thanks!

Antworten (1)

Chad Greene
Chad Greene am 9 Nov. 2014
Here are three function in one plot:
x = -10:10;
y1 = 10*cos(x/10);
y2 = abs(x.^1.2);
y3 = -y1;
plot(x,y1,'red')
hold on
plot(x,y2,'blue')
plot(x,y3,'magenta')

2 Kommentare

Olga
Olga am 9 Nov. 2014
thanks for the reply. my question was more about plotting one out of three curves in x-axis symmetry i.e mirror of No.2 curve in x-axis. thanks.
Your question is still not clear. Above, y3 is y1 mirrored over the x axis. Can you upload a hand drawing or MS Paint rendering of what you want to plot?

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 9 Nov. 2014

Kommentiert:

am 9 Nov. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by