Plot a function when I have only the function.

조회 수: 1 (최근 30일)
Adrian Lira Saucedo
Adrian Lira Saucedo 2020년 12월 7일
답변: Star Strider 2020년 12월 7일
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);

답변 (1개)

Star Strider
Star Strider 2020년 12월 7일
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));
.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by