Hi I want to plot an equation which depends on x. For example I what to plot y=1/(1-x) where value of x can be between 0 to 20. How can I write this code?

 Akzeptierte Antwort

jgg
jgg am 19 Feb. 2016

0 Stimmen

You should look up the plot function:
incr = 0.1;
x = [1:incr:20];
y = (1-x).^-1
plot(x,y)

Weitere Antworten (0)

Kategorien

Mehr zu Particle & Nuclear Physics finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 19 Feb. 2016

Beantwortet:

jgg
am 19 Feb. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by