finding maximum value of a two plots
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (1)
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
.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!