채택된 답변

Mitch Lautigar
Mitch Lautigar 2022년 6월 9일

0 개 추천

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일
yeah but the problem is that i did try to make it work and i failed if u can help me with the code it will be wonderful
Mitch Lautigar
Mitch Lautigar 2022년 6월 9일
% numerator ./ denominator
y = ( 2.* exp(x) ) ./ ()
%you can handle the denominator. Note how I'm using parenthesis and spaces to make things easier to see.
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개)

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

제품

태그

질문:

2022년 6월 9일

댓글:

2022년 6월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by