I am very new to Matlab and was wondering how to graph the function y= (x-1)/(x+1)
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have written the code: x= -5:5; y= (x - 1)/(x + 1); plot(x,y)
It does not come up with any errors but when I select Run my graph does not show
0 commentaires
Réponse acceptée
MSP
le 30 Juil 2017
Just include a . before division
x= -5:5
y= (x - 1)./(x + 1)
plot(x,y)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots 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!