plot the following functions using axes that will produce a stright line

8 ビュー (過去 30 日間)
Jack
Jack 2012 年 2 月 23 日
編集済み: Chong Tao 2013 年 10 月 21 日
Can someone show me how to plot the following functions using axes that will produce a stright-line plot using Use the range 0 \< x \< 10
1) The power function y= 2x^-0.5 2) The exponential function y= 10^(1-x)
Thanks

採用された回答

the cyclist
the cyclist 2012 年 2 月 23 日
In the first case you can use loglog():
x = 1:0.1:10;
y = 2*x.^(0.5);
loglog(x,y)
In the second case you can use semilogy();
x = 1:0.1:10;
y = 10.^(1-x);
semilogy(x,y)
  2 件のコメント
Jack
Jack 2012 年 2 月 23 日
Thanks man ur the best!
the cyclist
the cyclist 2012 年 2 月 23 日
Please consider "accepting" this answer, since it sounds like it resolved your question.

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

その他の回答 (1 件)

Honglei Chen
Honglei Chen 2012 年 2 月 23 日
I don't quite understand what you mean by using axes. But if you use
loglog(x,y)
for the first function and
semilogy(x,y)
for the second function, they'll look like straight lines, basically taking advantage of logarithms.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by