Filter löschen
Filter löschen

finding maximum value of a two plots

2 Ansichten (letzte 30 Tage)
Raya Arafat
Raya Arafat am 21 Jun. 2020
Beantwortet: Star Strider am 21 Jun. 2020
finding maximum value of a two plots????
syms x
y=(3/800)*((x).^2-(0.5)*((x).^4))
fplot(y,[0 1])
hold on
y1=(0.01/pi)*(((pi/2)*x*sin((pi/2)*x)+cos((pi/2)*x)-1))
fplot(y1,[0 1])
xlabel('y/l')
ylabel('uy/u')
hold off

Antworten (1)

Star Strider
Star Strider am 21 Jun. 2020
Try this:
syms x
y=(3/800)*((x).^2-(0.5)*((x).^4));
yv1 = fplot(y,[0 1]);
hold on
y1=(0.01/pi)*(((pi/2)*x*sin((pi/2)*x)+cos((pi/2)*x)-1));
yv2 = fplot(y1,[0 1]);
xlabel('y/l')
ylabel('uy/u')
hold off
yv = [yv1.YData; yv2.YData];
ymax = max(yv(:))
producing:
ymax =
1.8750e-003
.

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by