Plotting an equation at different X
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Yalda Saffary
el 19 de Feb. de 2016
Respondida: jgg
el 19 de Feb. de 2016
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?
0 comentarios
Respuesta aceptada
jgg
el 19 de Feb. de 2016
You should look up the plot function:
incr = 0.1;
x = [1:incr:20];
y = (1-x).^-1
plot(x,y)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Particle & Nuclear Physics en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!