Plot a function when I have only the function.

1 Ansicht (letzte 30 Tage)
Adrian Lira Saucedo
Adrian Lira Saucedo am 7 Dez. 2020
Beantwortet: Star Strider am 7 Dez. 2020
I want to plot the following function, but I don't know how to write de values of x so it returns a graph.
y = ((pi())*(((20*x.^(3/2))/(3/2))-(x.^(5/2)/(5/2))))/(0.00001*(sqrt(19.62)));
plot(y);

Antworten (1)

Star Strider
Star Strider am 7 Dez. 2020
Choose whatever range for ‘x’ that you want:
x = linspace(-5,35);
y = ((pi())*(((20*x.^(3/2))/(3/2))-(x.^(5/2)/(5/2))))/(0.00001*(sqrt(19.62)));
plot(x,real(y), x,imag(y));
.

Kategorien

Mehr zu 2-D and 3-D Plots 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