![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/368998/image.png)
how to plot the graph y={1}/{1+10^{x/400}}
조회 수: 2 (최근 30일)
이전 댓글 표시
Im completely new to matlab. i want to plot the graph y={1}/{1+10^{x/400}} to show what happens when x tends to minus infinity and infinity is this possible.
댓글 수: 0
채택된 답변
Ameer Hamza
2020년 9월 30일
편집: Ameer Hamza
2020년 9월 30일
You can plot it over a large range to see the trend
x = linspace(-1000, 1000);
y = @(x) 1./(1+10.^(x/400));
plot(x, y(x))
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/368998/image.png)
You can also put the value at infinity
>> y(inf)
ans =
0
>> y(-inf)
ans =
1
If you have symbolic toolbox
syms x
y = 1/(1+10^(x/400));
fplot(y, [-1000 1000])
And find the limits
>> limit(y, x, inf)
ans =
0
>> limit(y, x, -inf)
ans =
1
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Directed Graphs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!