Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Why my graph is not corelating with my calculations
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
my equation is
exp(x)-(x+1)/(x-1)
Once i plot it with
> x=0:.01:3;
>> y=exp(x)-(x+1)/(x-1);
>> plot(x,y)
I get strange graph
For example at x=0 the equation says that y=2
but plot is showing close to -.5
why it is so??
0 comentarios
Respuestas (2)
Daniel Shub
el 3 de Oct. de 2011
There is a difference between "/" and "./". You want ./
y=exp(x)-(x+1)./(x-1);
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!