How to plot lnx ?
20 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mohamad
le 29 Sep 2013
Commenté : Azzi Abdelmalek
le 29 Sep 2013
let us say
x= [0 1 2 3 4 5 6 7 8 9]
and y = ln(x)
plot (x,y ) does not work. Is y=ln(x) a wrong statement ?
2 commentaires
Titus Edelhofer
le 29 Sep 2013
Since I guess, y = ln(x) has thrown an error like "Undefined function or variable y" I would say, yes, this is a wrong statement. My suggestion: open the doc and search for logarithm ...
Réponse acceptée
Azzi Abdelmalek
le 29 Sep 2013
Modifié(e) : Azzi Abdelmalek
le 29 Sep 2013
x= [0 1 2 3 4 5 6 7 8 9]
y=log(x)
plot(x,y)
You should know that log is not defined for x=0
2 commentaires
Azzi Abdelmalek
le 29 Sep 2013
Modifié(e) : Azzi Abdelmalek
le 29 Sep 2013
log is just the name of the function corresponding to ln(x). You can check
log(exp(1))
help log
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Exponents and Logarithms 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!