Plotting an equation at different X
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
jgg
le 19 Fév 2016
You should look up the plot function:
incr = 0.1;
x = [1:incr:20];
y = (1-x).^-1
plot(x,y)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Particle & Nuclear Physics dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!