Clear Filters
Clear Filters

finding maximum value of a two plots

2 views (last 30 days)
Raya Arafat
Raya Arafat on 21 Jun 2020
Answered: Star Strider on 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

Answers (1)

Star Strider
Star Strider on 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
.

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!