Plot a function when I have only the function.
1 次查看(过去 30 天)
显示 更早的评论
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);
0 个评论
回答(1 个)
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));
.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!