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!