Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to plot this function in matlab?

1 回表示 (過去 30 日間)
Ahmad
Ahmad 2016 年 5 月 28 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
x=e^((y-b)/a)

回答 (2 件)

John D'Errico
John D'Errico 2016 年 5 月 28 日
編集済み: John D'Errico 2016 年 5 月 28 日
help exp
help ezplot
Subtract x. Don't have the equality in there. ezplot will assume the result is implicitly equal to zero, but if you put in an equality symbol, it will get confused.
Of course, if b and a are not known, then how do you expect any plot? So, supply some values for b and a FIRST.
Or, just take the log, then solving for y.

John BG
John BG 2017 年 3 月 13 日
Hi Ahmad
with new fplot is even easier
a=1,b=2;fplot(@(x) exp((x-b)/a))
if you find this answer useful would you please be so kind to mark my answer as Accepted Answer?
To any other reader, please if you find this answer of any help solving your question,
please click on the thumbs-up vote link,
thanks in advance
John BG

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by