how to plot a graph of this equation?

 Risposta accettata

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

5 Commenti

thank you so much,
can we plot without values, just to represent a graph?
DGM
DGM il 29 Lug 2021
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.

Accedi per commentare.

Più risposte (0)

Categorie

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by