how to do a 2d plot

3 ビュー (過去 30 日間)
asjad diknash
asjad diknash 2022 年 6 月 9 日
コメント済み: Mitch Lautigar 2022 年 6 月 10 日
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?
Mitch Lautigar
Mitch Lautigar 2022 年 6 月 10 日
yes

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by