採用された回答

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 で Line Plots についてさらに検索

製品

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by