How can I modify function assignment of plot?

Hi!
So when I use the plot and the assignment of x is -10 to 15 and y is -10 to 15 but I would like to be y -10 to 10 twos and x -10 to 15 assigned with fiver.
How can I do this?
ui: Sorry my english :D

 Akzeptierte Antwort

madhan ravi
madhan ravi am 19 Nov. 2018
Bearbeitet: madhan ravi am 19 Nov. 2018

0 Stimmen

Use linspace as below:
x = linspace(-10,15,1000); % divided into 1000 parts
y = linspace(-10,10,1000); % divided into 1000 parts
plot(x,y)

Weitere Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-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