Info
此问题已关闭。 请重新打开它进行编辑或回答。
Why my graph is not corelating with my calculations
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
Daniel Shub
2011-10-3
There is a difference between "/" and "./". You want ./
y=exp(x)-(x+1)./(x-1);
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!