finding maximum value of a two plots

2 次查看(过去 30 天)
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

回答(1 个)

Star Strider
Star Strider 2020-6-21
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
.

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by