Borrar filtros
Borrar filtros

finding maximum value of a two plots

2 visualizaciones (últimos 30 días)
Raya Arafat
Raya Arafat el 21 de Jun. de 2020
Respondida: Star Strider el 21 de Jun. de 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

Respuestas (1)

Star Strider
Star Strider el 21 de Jun. de 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
.

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by