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 comentarios

Titus Edelhofer
Titus Edelhofer el 29 de Sept. de 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 ...
Mohamad
Mohamad el 29 de Sept. de 2013
I did it is not understandable

Iniciar sesión para comentar.

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 29 de Sept. de 2013
Editada: Azzi Abdelmalek el 29 de Sept. de 2013

0 votos

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 comentarios

Mohamad
Mohamad el 29 de Sept. de 2013
this is log, I want lnx, which acutally is logx of base e.
Azzi Abdelmalek
Azzi Abdelmalek el 29 de Sept. de 2013
Editada: Azzi Abdelmalek el 29 de Sept. de 2013
log is just the name of the function corresponding to ln(x). You can check
log(exp(1))
help log

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Exponents and Logarithms en Centro de ayuda y File Exchange.

Preguntada:

el 29 de Sept. de 2013

Comentada:

el 29 de Sept. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by