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 CenterFile Exchange에서 2-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