フィルターのクリア

how to plot exponential function

1 回表示 (過去 30 日間)
Carc
Carc 2023 年 1 月 12 日
コメント済み: Matt J 2023 年 1 月 12 日
I am a novice user of matlab. I want to plot a exponenetail function, but failed. Could you let me know what error I have?
x = (10^-12:100:50);
y = (x ./ 0.026^2) .* (exp(-x ./ 0.026));
plot(x, y)

回答 (1 件)

Matt J
Matt J 2023 年 1 月 12 日
編集済み: Matt J 2023 年 1 月 12 日
x = linspace(10^-12,50,100);
y = (x ./ 0.026^2) .* (exp(-x ./ 0.026));
loglog(x, y,'x--')
  1 件のコメント
Matt J
Matt J 2023 年 1 月 12 日
If you don't know, nobody does.

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

カテゴリ

Help Center および File ExchangeGraphics Objects についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by