how to do a 2d plot

1 次查看(过去 30 天)
y=ln(2e^x/(1+e^x)^2)

采纳的回答

Mitch Lautigar
Mitch Lautigar 2022-6-9
You need to use dot indexing since the values passed in will be in an array. Since this looks like a HW problem, I encourage you to play with ".*" and "./" and use the following link to help you with the natural log.
https://www.mathworks.com/help/matlab/ref/log.html
  4 个评论
asjad diknash
asjad diknash 2022-6-9
so after i write the equation and in order to get a gragh i just use plot(x,y) right?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by