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))
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!