how to plot a graph of this equation?

 Accepted Answer

x=-10:0.1:10
Y=1./(x.^2)+8
plot(x,Y)

5 Comments

thank you so much,
can we plot without values, just to represent a graph?
The question is unclear. If you don't have values, then how exactly are you describing what you intend?
If you have a symbolic expression, you can plot it using something like fplot() or fsurf().
If you just want to draw a picture with the mouse, why must it be done in MATLAB instead of an appropriate application? You can probably concoct a means to do it in MATLAB using ROI tools, but it will be far more complicated and cumbersome than either using external tools or deriving appropriate values or expressions.
Yes, if you don't want the values on the plot just use
xticklabels([])
yticklabels([])
@Luiz That's actually a more sensible interpretation of the question. Thank you.

Sign in to comment.

More Answers (0)

Categories

Tags

Asked:

on 28 Mar 2016

Commented:

DGM
on 2 Oct 2024

Community Treasure Hunt

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

Start Hunting!